aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenny Lofthus <jenny.lofthus@qt.io>2022-05-18 15:06:23 +0200
committerJenny Lofthus <jenny.lofthus@qt.io>2022-05-23 12:50:02 +0200
commit0b98803d3ca9815fc1707eee8a3d417f17349c4d (patch)
treeaf04e4029339d071521a2a50b38affd92aaae292
parent24bcc0f63224ef38a0c535b0f2f31c2df1358083 (diff)
Controls: add baseline test for RoundButton
Change-Id: I156564cc75513cbe6202836cb877557944510872 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
-rw-r--r--tests/baseline/controls/data/roundbutton/roundbutton.qml50
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/baseline/controls/data/roundbutton/roundbutton.qml b/tests/baseline/controls/data/roundbutton/roundbutton.qml
new file mode 100644
index 0000000000..5c2c7b2eb8
--- /dev/null
+++ b/tests/baseline/controls/data/roundbutton/roundbutton.qml
@@ -0,0 +1,50 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+
+ColumnLayout {
+ spacing: 5
+
+ RoundButton {
+ }
+
+ RoundButton {
+ text: qsTr("2")
+ enabled: false
+ }
+
+ RoundButton {
+ text: qsTr("3")
+ down: true
+ }
+
+ RoundButton {
+ text: qsTr("4")
+ checked: true
+ }
+
+ RoundButton {
+ text: qsTr("5")
+ checkable: true
+ }
+
+ RoundButton {
+ text: qsTr("6")
+ focus: true
+ }
+
+ RoundButton {
+ text: qsTr("7")
+ highlighted: true
+ }
+
+ RoundButton {
+ text: qsTr("8")
+ flat: true
+ }
+
+ RoundButton {
+ text: qsTr("9")
+ LayoutMirroring.enabled: true
+ }
+}