diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2020-09-23 10:38:27 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2020-09-24 13:49:00 +0200 |
commit | 63b8b7d2ed34880e4f057d679bd505d0c3975390 (patch) | |
tree | 9258618484a0d0f41f672785eafc18373e31702a /tests/manual/testbench/SettingsDialog.qml | |
parent | f15c42f968f8ff560b93f11279a97fdc76d50e65 (diff) |
Adjust testbench to properly support multiple styles
We need to split the uses of the Imagine style API out into
file-selected files. We set Imagine.path so that the default
assets are used for areas of the UI that are important to the
functioning of the example, as using custom assets here could
make it impossible to use the API if the assets were not
created correctly.
Change-Id: I2b6b683ffe65b7d573abf0ae793509a95417aead
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/manual/testbench/SettingsDialog.qml')
-rw-r--r-- | tests/manual/testbench/SettingsDialog.qml | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/manual/testbench/SettingsDialog.qml b/tests/manual/testbench/SettingsDialog.qml index d75f89f1..d11b5bea 100644 --- a/tests/manual/testbench/SettingsDialog.qml +++ b/tests/manual/testbench/SettingsDialog.qml @@ -50,12 +50,12 @@ import QtQuick import QtQuick.Controls -import QtQuick.Controls.Imagine import QtQuick.Layouts -import App +import Backend +import "." as Ui -Dialog { +Ui.Dialog { id: settingsDialog title: "Settings" width: 500 @@ -63,8 +63,6 @@ Dialog { x: (parent.width - width) / 2 y: (parent.height - height) / 2 - Imagine.path: defaultImaginePath - property alias imaginePathTextField: imaginePathTextField property alias customImagineStyleCheckBox: customImagineStyleCheckBox property alias autoFixImagineAssetsCheckBox: autoFixImagineAssetsCheckBox @@ -242,8 +240,6 @@ Dialog { visible: imaginePathTextField.hovered delay: 500 parent: imaginePathTextField - - Imagine.path: defaultImaginePath } } @@ -274,8 +270,6 @@ Dialog { visible: autoFixImagineAssetsCheckBox.hovered delay: 500 parent: imaginePathTextField - - Imagine.path: defaultImaginePath } } } |