| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause |
| 3 |
|
| 4 |
#include "composition.h" |
| 5 |
|
| 6 |
#include <QApplication> |
| 7 |
|
| 8 |
int main(int argc, char *argv[]) |
| 9 |
{ |
| 10 |
QApplication app(argc, argv); |
| 11 |
|
| 12 |
QScopedPointer<QStyle> arthurStyle(new ArthurStyle()); |
| 13 |
CompositionWidget compWidget(nullptr); |
| 14 |
compWidget.setStyle(arthurStyle.data()); |
| 15 |
|
| 16 |
const QList<QWidget *> widgets = compWidget.findChildren<QWidget *>(); |
| 17 |
for (QWidget *w : widgets) |
| 18 |
w->setStyle(arthurStyle.data()); |
| 19 |
compWidget.show(); |
| 20 |
|
| 21 |
return app.exec(); |
| 22 |
} |