diff options
author | Jenny Lofthus <jenny.lofthus@qt.io> | 2022-05-16 15:56:24 +0200 |
---|---|---|
committer | Jenny Lofthus <jenny.lofthus@qt.io> | 2022-05-23 12:50:02 +0200 |
commit | d9162554e8f8242499548137fde978a397aad4a6 (patch) | |
tree | aab1d2c93c9ae8cfe1ae8c39970cfc38e1bc2c1d | |
parent | 06ad2e8d339619b68d076bf826c25170720034f7 (diff) |
Controls: add baseline test for Switch
Change-Id: I9eb22c6639148f75bd7a52c69b8f5ce60258b7d6
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Reviewed-by: Mathias Brevik <mathias.brevik@qt.io>
-rw-r--r-- | tests/baseline/controls/data/switch/switch.qml | 37 |
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 + } +} |