aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-10-05 12:06:58 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2020-10-05 14:55:56 +0200
commit389d4b1971630a67e3d6fa45b11ec13af59d26e0 (patch)
tree35a25062d2bb5305362c3dd6310645ba9bd7122e /src/imports
parentf574982432fea6a5e4f876dae8198783ed1c1ece (diff)
testlib: Remove the deprecated MouseDoubleClick() method
After qtbase/871d19a5b96fa5a5be4ac50e3121e0704ff08374 MouseButtonDblClick is no longer delivered like a press event, but like an update: that is, only grabbers will receive it. So this test function is even less useful for the sorts of tests that are written in QML. Those who want to test pathological event sequences can do it in C++. Task-number: QTBUG-42185 Change-Id: Ib40c7acd0a807b2c701357164c1579a9cd1823a5 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/testlib/TestCase.qml35
1 files changed, 0 insertions, 35 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