aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/testlib/TestCase.qml
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2012-03-13 11:47:59 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-04 10:12:10 +0200
commitb9c039b3ac76d20ffe2d05259d5406b7c1bac25d (patch)
tree56cd88fe36d29a19b22f31212924bd5eb023b161 /src/imports/testlib/TestCase.qml
parent8a80f76fd6591b0553c5e9574a5f04cd3bebb659 (diff)
Improve mouseWheel() function
Use new angleDela() API and update the documentation. Change-Id: Ie01c979d8c411e81165caedc7e020e39f9d64371 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'src/imports/testlib/TestCase.qml')
-rw-r--r--src/imports/testlib/TestCase.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml
index 883a864e59..9060ecc3b3 100644
--- a/src/imports/testlib/TestCase.qml
+++ b/src/imports/testlib/TestCase.qml
@@ -455,18 +455,18 @@ Item {
qtest_fail("window not shown", 2)
}
- function mouseWheel(item, x, y, delta, buttons, modifiers, delay, orientation) {
+ function mouseWheel(item, x, y, xDelta, yDelta, buttons, modifiers, delay) {
if (delay == undefined)
delay = -1
if (buttons == undefined)
buttons = Qt.NoButton
if (modifiers === undefined)
modifiers = Qt.NoModifier
- if (delta == undefined)
- delta = 0
- if (orientation == undefined)
- orientation = Qt.Vertical
- if (!qtest_events.mouseWheel(item, x, y, buttons, modifiers, delta, delay, orientation))
+ if (xDelta == undefined)
+ xDelta = 0
+ if (yDelta == undefined)
+ yDelta = 0
+ if (!qtest_events.mouseWheel(item, x, y, buttons, modifiers, xDelta, yDelta, delay))
qtest_fail("window not shown", 2)
}