aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickcontrols/testbench/utils.h
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2025-11-07 17:22:13 +0800
committerMitch Curtis <mitch.curtis@qt.io>2025-11-11 09:20:41 +0800
commitc6e80f8d62a47d437dc9b123e971887366c6504f (patch)
tree35c4347b384f40dc1b3e55a3910fe35a23be9baa /tests/manual/quickcontrols/testbench/utils.h
parentdd31db74a3e8d741fce5b64e5f9223d162534b1a (diff)
testbench: move context property into Utils singleton
Pick-to: 6.8 6.10 Change-Id: Iabfea6ceddb85a58b24180e09c20980b383e5fb5 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Diffstat (limited to 'tests/manual/quickcontrols/testbench/utils.h')
-rw-r--r--tests/manual/quickcontrols/testbench/utils.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/manual/quickcontrols/testbench/utils.h b/tests/manual/quickcontrols/testbench/utils.h
new file mode 100644
index 0000000000..c488432a51
--- /dev/null
+++ b/tests/manual/quickcontrols/testbench/utils.h
@@ -0,0 +1,23 @@
+// Copyright (C) 2025 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#ifndef UTILS_H
+#define UTILS_H
+
+#include <QObject>
+#include <QtQmlIntegration/qqmlintegration.h>
+
+class Utils : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(QStringList availableStyles READ availableStyles CONSTANT FINAL)
+ QML_ELEMENT
+ QML_SINGLETON
+
+public:
+ explicit Utils(QObject *parent = nullptr);
+
+ QStringList availableStyles() const;
+};
+
+#endif // UTILS_H