diff options
author | Sami Shalayel <sami.shalayel@qt.io> | 2023-01-11 10:37:21 +0100 |
---|---|---|
committer | Sami Shalayel <sami.shalayel@qt.io> | 2023-01-24 13:41:45 +0100 |
commit | e1cebe812838c8c98bca07413a023673706c45b8 (patch) | |
tree | 2fdf2d9fe38c856c427beb593d62115c0835272c /tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | |
parent | 09411e39586e4b75aa831f79e2b4d699c718baa8 (diff) |
QQuickMouseArea: do not overload pressed-signal
Renames the pressed() getter of the pressed property in QQuickMouseArea
to isPressed() to avoid overloading the pressed()-signal.
Signals should not be overloaded. Also, it makes code generation in
qmltc more complicated.
Task-number: QTBUG-110029
Change-Id: I2373f4fe97b1e955b815825003bc746f2eaf43be
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicklistview/tst_qquicklistview.cpp')
-rw-r--r-- | tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp index 13727b2a31..8a3a23826d 100644 --- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp +++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp @@ -9691,7 +9691,7 @@ void tst_QQuickListView::touchCancel() // QTBUG-74679 QPoint p1(300, 300); QTest::touchEvent(window.data(), touchDevice).press(0, p1, window.data()); QQuickTouchUtils::flush(window.data()); - QTRY_VERIFY(mouseArea->pressed()); + QTRY_VERIFY(mouseArea->isPressed()); // and because Flickable filtered it, QQuickFlickablePrivate::pressed // should be true, but it's not easily tested here |