diff options
author | Jenny Lofthus <jenny.lofthus@qt.io> | 2022-05-18 14:19:08 +0200 |
---|---|---|
committer | Jenny Lofthus <jenny.lofthus@qt.io> | 2022-05-24 02:50:09 +0200 |
commit | 1662bb9fbe5a6c79a8c59be5a8f7024d430e57c2 (patch) | |
tree | 463abdf594b235321905d7a20d2e6e21dde2103a | |
parent | a673a4dd67824da28349c946c3b04893af57d396 (diff) |
Controls: add baseline test for SpinBox
Change-Id: I4047819c75ca018b0ceb582c9a2eb8273392a24f
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
-rw-r--r-- | tests/baseline/controls/data/spinbox/spinbox.qml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/baseline/controls/data/spinbox/spinbox.qml b/tests/baseline/controls/data/spinbox/spinbox.qml new file mode 100644 index 0000000000..244e9fb10b --- /dev/null +++ b/tests/baseline/controls/data/spinbox/spinbox.qml @@ -0,0 +1,52 @@ +import QtQuick +import QtQuick.Controls +import QtQuick.Layouts + +ColumnLayout { + spacing: 4 + width: 200 + + SpinBox { + value: 10 + } + + SpinBox { + value: 10 + enabled: false + } + + SpinBox { + value: 10 + focus: true + } + + SpinBox { + value: 10 + LayoutMirroring.enabled: true + } + + SpinBox { + value: 10 + editable: true + } + + SpinBox { + value: 10 + up.hovered: true + } + + SpinBox { + value: 10 + up.pressed: true + } + + SpinBox { + value: 10 + down.hovered: true + } + + SpinBox { + value: 10 + down.pressed: true + } +} |