aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-01-12 14:59:44 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-01-12 21:09:34 +0000
commit698cffce2171bed322aa9d0df1fda316c379efda (patch)
treeb2ff43dec15d85c25577f0710119baaeac8cc8cd
parent00a062649b8aec20c3ac3f61aa72b1cdde43b055 (diff)
Fix tst_toolbutton.qml
A copy-paste mistake. There's no such thing as Qt.LeftToolButton. It evaluated to undefined, and ended up using the default value Qt.LeftButton. Change-Id: Ie8d6714f663daa2bdfed2645a4fdc3e370e236ed Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--tests/auto/controls/data/tst_toolbutton.qml14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/auto/controls/data/tst_toolbutton.qml b/tests/auto/controls/data/tst_toolbutton.qml
index c00661f0..d23effdc 100644
--- a/tests/auto/controls/data/tst_toolbutton.qml
+++ b/tests/auto/controls/data/tst_toolbutton.qml
@@ -87,12 +87,12 @@ TestCase {
verify(clickedSpy.valid)
// check
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftToolButton)
+ mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
compare(pressedSpy.count, 1)
compare(downSpy.count, 1)
compare(control.pressed, true)
compare(control.down, true)
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftToolButton)
+ mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
compare(clickedSpy.count, 1)
compare(pressedSpy.count, 2)
compare(downSpy.count, 2)
@@ -100,12 +100,12 @@ TestCase {
compare(control.down, false)
// uncheck
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftToolButton)
+ mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
compare(pressedSpy.count, 3)
compare(downSpy.count, 3)
compare(control.pressed, true)
compare(control.down, true)
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftToolButton)
+ mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
compare(clickedSpy.count, 2)
compare(pressedSpy.count, 4)
compare(downSpy.count, 4)
@@ -113,15 +113,15 @@ TestCase {
compare(control.down, false)
// release outside
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftToolButton)
+ mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
compare(pressedSpy.count, 5)
compare(downSpy.count, 5)
compare(control.pressed, true)
compare(control.down, true)
- mouseMove(control, control.width * 2, control.height * 2, 0, Qt.LeftToolButton)
+ mouseMove(control, control.width * 2, control.height * 2, 0, Qt.LeftButton)
compare(control.pressed, false)
compare(control.down, false)
- mouseRelease(control, control.width * 2, control.height * 2, Qt.LeftToolButton)
+ mouseRelease(control, control.width * 2, control.height * 2, Qt.LeftButton)
compare(clickedSpy.count, 2)
compare(pressedSpy.count, 6)
compare(downSpy.count, 6)