aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/imports/testlib/TestCase.qml35
-rw-r--r--tests/auto/qmltest/events/tst_events.qml5
2 files changed, 0 insertions, 40 deletions
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml
index 8dfc8038ee..185287ebd5 100644
--- a/src/imports/testlib/TestCase.qml
+++ b/src/imports/testlib/TestCase.qml
@@ -1474,41 +1474,6 @@ Item {
}
/*!
- \qmlmethod TestCase::mouseDoubleClick(item, x = item.width / 2, y = item.height / 2, button = Qt.LeftButton, modifiers = Qt.NoModifier, delay = -1)
- \deprecated
-
- Simulates double-clicking a mouse \a button with optional \a modifiers
- on an \a item. The position of the click is defined by \a x and \a y.
- If \a x and \a y are not defined the position will be the center of \a item.
- If \a delay is specified, the test will wait for the specified amount of
- milliseconds before pressing and before releasing the button.
-
- The position given by \a x and \a y is transformed from the co-ordinate
- system of \a item into window co-ordinates and then delivered.
- If \a item is obscured by another item, or a child of \a item occupies
- that position, then the event will be delivered to the other item instead.
-
- \sa mouseDoubleClickSequence(), mousePress(), mouseRelease(), mouseClick(), mouseMove(), mouseDrag(), mouseWheel()
- */
- function mouseDoubleClick(item, x, y, button, modifiers, delay) {
- if (!qtest_verifyItem(item, "mouseDoubleClick"))
- return
-
- if (button === undefined)
- button = Qt.LeftButton
- if (modifiers === undefined)
- modifiers = Qt.NoModifier
- if (delay == undefined)
- delay = -1
- if (x === undefined)
- x = item.width / 2
- if (y === undefined)
- y = item.height / 2
- if (!qtest_events.mouseDoubleClick(item, x, y, button, modifiers, delay))
- qtest_fail("window not shown", 2)
- }
-
- /*!
\qmlmethod TestCase::mouseDoubleClickSequence(item, x = item.width / 2, y = item.height / 2, button = Qt.LeftButton, modifiers = Qt.NoModifier, delay = -1)
Simulates the full sequence of events generated by double-clicking a mouse
diff --git a/tests/auto/qmltest/events/tst_events.qml b/tests/auto/qmltest/events/tst_events.qml
index d9868a316c..18a2e932ef 100644
--- a/tests/auto/qmltest/events/tst_events.qml
+++ b/tests/auto/qmltest/events/tst_events.qml
@@ -115,11 +115,6 @@ Rectangle {
compare(doubleClickSpy.signalArguments[3][0], "pressed")
compare(doubleClickSpy.signalArguments[4][0], "doubleClick")
compare(doubleClickSpy.signalArguments[5][0], "released")
-
- doubleClickSpy.clear()
- mouseDoubleClick(top, 25, 30)
- compare(doubleClickSpy.count, 1)
- compare(doubleClickSpy.signalArguments[0][0], "doubleClick")
}
}
}