aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-07-12 15:19:34 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-07-12 15:48:13 +0000
commit10eb6a9b19eaab917745235f2846fcd75d8a1fad (patch)
tree605e24f4451a97b52bc9ce58d7ff48767d7ddc54
parent16d5f05695b251b4b193a4c132b96c27ebb7d724 (diff)
Fix warning in RangeSlider::test_touchDragThreshold test
The warnings were: TypeError: Cannot assign to read-only property "first" TypeError: Cannot assign to read-only property "second" Change-Id: Ida6b0e4491f9ef867454b32c0ce1c4cd33dd841f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 87b512cdf417e3e2898bbd5b808b5b837f93b7d5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/controls/data/tst_rangeslider.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_rangeslider.qml b/tests/auto/controls/data/tst_rangeslider.qml
index 1368739705..5e4d715034 100644
--- a/tests/auto/controls/data/tst_rangeslider.qml
+++ b/tests/auto/controls/data/tst_rangeslider.qml
@@ -982,7 +982,7 @@ TestCase {
}
function test_touchDragThreshold(data) {
- var control = createTemporaryObject(sliderComponent, testCase, {touchDragThreshold: 10, live: true, orientation: data.orientation, first: {value: 0}, second: {value: 1}})
+ var control = createTemporaryObject(sliderComponent, testCase, {touchDragThreshold: 10, live: true, orientation: data.orientation, "first.value": 0, "second.value": 1})
verify(control)
compare(control.touchDragThreshold, 10)