diff options
| author | Shawn Rutledge <shawn.rutledge@qt.io> | 2025-04-11 14:10:44 +0200 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2025-04-11 15:50:24 +0200 |
| commit | fe62a09338be3ca3371988e1645c8e74e36a4818 (patch) | |
| tree | 738ce16d2b8f152f4d7e1af3e75b69aabccf7403 | |
| parent | a5dc4453d67ead009c656f0752ddaa534e406d52 (diff) | |
tst_qquickwindow: Get rid of unused widget pointer
This test does not use widgets.
Change-Id: If5d446275354531364b942a8856070e444501651
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
| -rw-r--r-- | tests/auto/quick/qquickwindow/tst_qquickwindow.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp index 14acc916d5..5d46c09f36 100644 --- a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp +++ b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp @@ -40,7 +40,6 @@ Q_LOGGING_CATEGORY(lcTests, "qt.quick.tests") struct TouchEventData { QEvent::Type type; - QWidget *widget; QWindow *window; QEventPoint::States states; QList<QEventPoint> touchPoints; @@ -62,7 +61,7 @@ static QEventPoint makeTouchPoint(QQuickItem *item, const QPointF &p, const QPoi static TouchEventData makeTouchData(QEvent::Type type, QWindow *w, QEventPoint::States states = {}, const QList<QEventPoint>& touchPoints = QList<QEventPoint>()) { - TouchEventData d = { type, nullptr, w, states, touchPoints }; + TouchEventData d = { type, w, states, touchPoints }; for (auto &pt : d.touchPoints) QMutableEventPoint::detach(pt); return d; @@ -73,7 +72,7 @@ static TouchEventData makeTouchData(QEvent::Type type, QWindow *w, QEventPoint:: QList <QEventPoint> pts; for (auto pt : touchPoints) pts << *pt; - TouchEventData d = { type, nullptr, w, states, pts }; + TouchEventData d = { type, w, states, pts }; return d; } static TouchEventData makeTouchData(QEvent::Type type, QWindow *w, QEventPoint::States states, const QEventPoint &touchPoint) @@ -96,7 +95,6 @@ static TouchEventData makeTouchData(QEvent::Type type, QWindow *w, QEventPoint:: #define COMPARE_TOUCH_DATA(d1, d2) \ { \ QCOMPARE((int)d1.type, (int)d2.type); \ - QCOMPARE(d1.widget, d2.widget); \ QCOMPARE((int)d1.states, (int)d2.states); \ QCOMPARE(d1.touchPoints.count(), d2.touchPoints.count()); \ for (int i=0; i<d1.touchPoints.count(); i++) { \ |
