diff options
| author | Mitch Curtis <mitch.curtis@qt.io> | 2025-11-07 17:22:13 +0800 |
|---|---|---|
| committer | Mitch Curtis <mitch.curtis@qt.io> | 2025-11-11 09:20:41 +0800 |
| commit | c6e80f8d62a47d437dc9b123e971887366c6504f (patch) | |
| tree | 35c4347b384f40dc1b3e55a3910fe35a23be9baa /tests/manual/quickcontrols/testbench/utils.cpp | |
| parent | dd31db74a3e8d741fce5b64e5f9223d162534b1a (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.cpp')
| -rw-r--r-- | tests/manual/quickcontrols/testbench/utils.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/manual/quickcontrols/testbench/utils.cpp b/tests/manual/quickcontrols/testbench/utils.cpp new file mode 100644 index 0000000000..2bfe027f3e --- /dev/null +++ b/tests/manual/quickcontrols/testbench/utils.cpp @@ -0,0 +1,16 @@ +// Copyright (C) 2025 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#include "utils.h" + +#include <QtQuickControls2/private/qquickstyle_p.h> + +Utils::Utils(QObject *parent) + : QObject(parent) +{ +} + +QStringList Utils::availableStyles() const +{ + return QQuickStylePrivate::builtInStyles(); +} |
