aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qquickstyleselector/data/Control.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-10-06 00:11:25 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-10-25 07:20:59 +0000
commit32810acaa191ba00be5aac5d771c23b87628292c (patch)
tree0c45b6ab2da561612032aa66a542cb89b9128b5a /tests/auto/qquickstyleselector/data/Control.qml
parent6ba40b132562593781ceffc13f642d366d6ad672 (diff)
Let specifying the fallback style for custom styles
For example, you can call QQuickStyle::setStyle(":/mycontrols") and QQuickStyle::setFallbackStyle("Material") to select a custom style so that the missing files will fallback to the Material style. Notice that the Material and Universal styles do not contain all files. For example, the non-visual Control.qml, Container.qml are not duplicated. For these, we must fallback to the Default style that is guaranteed to contain them all. [ChangeLog][Controls] Added support for specifying the fallback style for custom styles via :/qtquickcontrols2.conf, QT_QUICK_CONTROLS_FALLBACK_STYLE or QQuickStyle::setFallbackStyle(). Change-Id: I00be1c8c6aaca875ef851c90d018e9b5e2f501b7 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/qquickstyleselector/data/Control.qml')
-rw-r--r--tests/auto/qquickstyleselector/data/Control.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qquickstyleselector/data/Control.qml b/tests/auto/qquickstyleselector/data/Control.qml
new file mode 100644
index 00000000..697662f6
--- /dev/null
+++ b/tests/auto/qquickstyleselector/data/Control.qml
@@ -0,0 +1,2 @@
+import QtQuick.Templates 2.1 as T
+T.Control { }