diff options
author | Charles Yin <charles.yin@nokia.com> | 2012-03-13 11:47:59 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-04 10:12:10 +0200 |
commit | b9c039b3ac76d20ffe2d05259d5406b7c1bac25d (patch) | |
tree | 56cd88fe36d29a19b22f31212924bd5eb023b161 /tests/auto/qmltest/events | |
parent | 8a80f76fd6591b0553c5e9574a5f04cd3bebb659 (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 'tests/auto/qmltest/events')
-rw-r--r-- | tests/auto/qmltest/events/tst_wheel.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qmltest/events/tst_wheel.qml b/tests/auto/qmltest/events/tst_wheel.qml index 5d2bcc5e03..10c7c62163 100644 --- a/tests/auto/qmltest/events/tst_wheel.qml +++ b/tests/auto/qmltest/events/tst_wheel.qml @@ -70,14 +70,14 @@ Rectangle { when: windowShown // Must have this line for events to work. function test_wheel() { - //mouseWheel(item, x, y, delta, buttons = Qt.NoButton, modifiers = Qt.NoModifier, delay = -1, orientation = Qt.Vertical) - mouseWheel(flick, 200, 200, -120, Qt.NoButton, Qt.NoModifier, -1, Qt.Vertical); + //mouseWheel(item, x, y, xDelta, yDelta, buttons = Qt.NoButton, modifiers = Qt.NoModifier, delay = -1) + mouseWheel(flick, 200, 200, 0, -120, Qt.NoButton, Qt.NoModifier, -1); wait(1000); verify(flick.contentY > 0); verify(flick.contentX == 0); flick.contentY = 0; verify(flick.contentY == 0); - mouseWheel(flick, 200, 200, -120, Qt.NoButton, Qt.NoModifier, -1, Qt.Horizontal); + mouseWheel(flick, 200, 200, -120, 0, Qt.NoButton, Qt.NoModifier, -1); wait(1000); verify(flick.contentX > 0); verify(flick.contentY == 0); |