aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_slider.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-01-27 12:50:17 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-01-27 13:37:47 +0000
commitb026ebf67a95c6bca186e69e6e71b6fb70b4eeb3 (patch)
treeaa2230cf29158360c3a1869ee121b96ed37c8da7 /tests/auto/controls/data/tst_slider.qml
parent8968ce178453c3b6a74b95ba34fb492fd29ef764 (diff)
Default QQuickSlider::live to true
[ChangeLog][Important Behavior Changes] On a popular demand, Slider has been changed to report live value updates. This can be disabled by setting Slider::live to false. Change-Id: I48c6a92eb794d2846cfff96d8784c53c22843573 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/controls/data/tst_slider.qml')
-rw-r--r--tests/auto/controls/data/tst_slider.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/controls/data/tst_slider.qml b/tests/auto/controls/data/tst_slider.qml
index 8a3499be..94c9922f 100644
--- a/tests/auto/controls/data/tst_slider.qml
+++ b/tests/auto/controls/data/tst_slider.qml
@@ -377,7 +377,7 @@ TestCase {
}
function test_multiTouch() {
- var control1 = createTemporaryObject(slider, testCase)
+ var control1 = createTemporaryObject(slider, testCase, {live: false})
verify(control1)
var pressedCount1 = 0
@@ -407,7 +407,7 @@ TestCase {
compare(control1.pressed, true)
compare(control1.position, 1.0)
- var control2 = createTemporaryObject(slider, testCase, {y: control1.height})
+ var control2 = createTemporaryObject(slider, testCase, {y: control1.height, live: false})
verify(control2)
waitForRendering(control2)
@@ -565,7 +565,7 @@ TestCase {
// test with "unbalanced" paddings (left padding != right padding) to ensure
// that the slider position calculation is done taking padding into account
// ==> the position is _not_ 0.5 in the middle of the control
- var control = createTemporaryObject(slider, testCase, {leftPadding: 10, rightPadding: 20})
+ var control = createTemporaryObject(slider, testCase, {leftPadding: 10, rightPadding: 20, live: false})
verify(control)
var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressedChanged"})
@@ -651,7 +651,7 @@ TestCase {
}
function test_snapMode_mouse(data) {
- var control = createTemporaryObject(slider, testCase, {snapMode: data.snapMode, from: data.from, to: data.to, stepSize: 0.2})
+ var control = createTemporaryObject(slider, testCase, {live: false, snapMode: data.snapMode, from: data.from, to: data.to, stepSize: 0.2})
verify(control)
function sliderCompare(left, right) {
@@ -677,7 +677,7 @@ TestCase {
}
function test_snapMode_touch(data) {
- var control = createTemporaryObject(slider, testCase, {snapMode: data.snapMode, from: data.from, to: data.to, stepSize: 0.2})
+ var control = createTemporaryObject(slider, testCase, {live: false, snapMode: data.snapMode, from: data.from, to: data.to, stepSize: 0.2})
verify(control)
function sliderCompare(left, right) {