aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/controls/data/switch/switch.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/baseline/controls/data/switch/switch.qml')
-rw-r--r--tests/baseline/controls/data/switch/switch.qml37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/baseline/controls/data/switch/switch.qml b/tests/baseline/controls/data/switch/switch.qml
new file mode 100644
index 0000000000..b19e9d4cfc
--- /dev/null
+++ b/tests/baseline/controls/data/switch/switch.qml
@@ -0,0 +1,37 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+
+ColumnLayout {
+ spacing: 2
+ width: 200
+
+ Switch {
+ text: qsTr("First")
+ }
+
+ Switch {
+ text: qsTr("Second")
+ checked: true
+ }
+
+ Switch {
+ text: qsTr("Third")
+ enabled: false
+ }
+
+ Switch {
+ text: qsTr("Fourth")
+ LayoutMirroring.enabled: true
+ }
+
+ Switch {
+ text: qsTr("Sixth")
+ focus: true
+ }
+
+ Switch {
+ text: qsTr("Seventh")
+ down: true
+ }
+}