diff options
Diffstat (limited to 'tests/auto/testplugin/testcppmodels.h')
-rw-r--r-- | tests/auto/testplugin/testcppmodels.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/auto/testplugin/testcppmodels.h b/tests/auto/testplugin/testcppmodels.h index 4a74e2de..f5cc6298 100644 --- a/tests/auto/testplugin/testcppmodels.h +++ b/tests/auto/testplugin/testcppmodels.h @@ -40,33 +40,9 @@ #include <QAbstractListModel> #include <QVariant> #include <QtGui/private/qguiapplication_p.h> -#include <qpa/qplatformtheme.h> #include <QtQml/QQmlEngine> #include <QtQml/QJSEngine> -class SystemInfo : public QObject -{ - Q_OBJECT - Q_PROPERTY(bool tabAllWidgets READ tabAllWidgets CONSTANT) - -public: - SystemInfo() {} - bool tabAllWidgets() const { - if (const QPlatformTheme *theme = QGuiApplicationPrivate::platformTheme()) - return theme->themeHint(QPlatformTheme::TabAllWidgets).toBool(); - return true; - } -}; - -static QObject *systeminfo_provider(QQmlEngine *engine, QJSEngine *scriptEngine) -{ - Q_UNUSED(engine) - Q_UNUSED(scriptEngine) - - SystemInfo *systemInfo = new SystemInfo(); - return systemInfo; -} - class TestObject : public QObject { Q_OBJECT |