2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include "composition.h"
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
|
2012-11-23 10:52:51 +00:00
|
|
|
int main(int argc, char *argv[])
|
2011-04-27 10:05:43 +00:00
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
|
2019-05-23 13:40:37 +00:00
|
|
|
QScopedPointer<QStyle> arthurStyle(new ArthurStyle());
|
2018-07-11 13:12:56 +00:00
|
|
|
CompositionWidget compWidget(nullptr);
|
2019-05-23 13:40:37 +00:00
|
|
|
compWidget.setStyle(arthurStyle.data());
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2018-12-07 10:58:03 +00:00
|
|
|
const QList<QWidget *> widgets = compWidget.findChildren<QWidget *>();
|
|
|
|
for (QWidget *w : widgets)
|
2019-05-23 13:40:37 +00:00
|
|
|
w->setStyle(arthurStyle.data());
|
2011-04-27 10:05:43 +00:00
|
|
|
compWidget.show();
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|