aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2016-04-21 08:21:14 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2016-04-21 06:31:36 +0000
commita3b57a000eb1ffd7038b8d92c062a32c254a4c9f (patch)
treeec70580155c94beb807d0adf440efa67343d633f /tests
parent92cbfffc5c2a4bd12c9d4dd5862ecbf1c1fdc7c4 (diff)
Dial: make wrap default to false
This is a safer default considering that potential applications of the dial include controlling audio volume. Change-Id: I343a6b758a795190e4b0ad9bdfc5766cbb6cb3bc Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/controls/data/tst_dial.qml3
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml1
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml1
3 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/controls/data/tst_dial.qml b/tests/auto/controls/data/tst_dial.qml
index 0f7a4f85..b255f423 100644
--- a/tests/auto/controls/data/tst_dial.qml
+++ b/tests/auto/controls/data/tst_dial.qml
@@ -179,6 +179,7 @@ TestCase {
}
function test_dragging(data) {
+ dial.wrap = true;
verify(dial.wrap);
dial.from = data.from;
dial.to = data.to;
@@ -212,7 +213,7 @@ TestCase {
}
function test_nonWrapping() {
- dial.wrap = false;
+ compare(dial.wrap, false);
dial.value = 0;
// Ensure that dragging from bottom left to bottom right doesn't work.
diff --git a/tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml b/tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml
index a27a975b..55d744ec 100644
--- a/tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml
+++ b/tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml
@@ -51,7 +51,6 @@ Window {
Dial {
id: dial
- wrap: false
anchors.centerIn: parent
}
}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml b/tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml
index 55d744ec..ccd4f88c 100644
--- a/tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml
+++ b/tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml
@@ -51,6 +51,7 @@ Window {
Dial {
id: dial
+ wrap: true
anchors.centerIn: parent
}
}