aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quickcontrols2/qquickcontrol/tst_qquickcontrol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quickcontrols2/qquickcontrol/tst_qquickcontrol.cpp')
-rw-r--r--tests/auto/quickcontrols2/qquickcontrol/tst_qquickcontrol.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/quickcontrols2/qquickcontrol/tst_qquickcontrol.cpp b/tests/auto/quickcontrols2/qquickcontrol/tst_qquickcontrol.cpp
index ca6183e41d..ddb4b7ff8b 100644
--- a/tests/auto/quickcontrols2/qquickcontrol/tst_qquickcontrol.cpp
+++ b/tests/auto/quickcontrols2/qquickcontrol/tst_qquickcontrol.cpp
@@ -66,12 +66,12 @@ void tst_QQuickControl::flickable()
QPoint p(button->width() / 2, button->height() / 2);
QTest::touchEvent(window, touchDevice.data()).press(0, p);
- QTRY_COMPARE(buttonPressedSpy.count(), 1);
+ QTRY_COMPARE(buttonPressedSpy.size(), 1);
p += QPoint(1, 1); // less than the drag threshold
QTest::touchEvent(window, touchDevice.data()).move(0, p);
QTest::touchEvent(window, touchDevice.data()).release(0, p);
- QTRY_COMPARE(buttonReleasedSpy.count(), 1);
- QTRY_COMPARE(buttonClickedSpy.count(), 1);
+ QTRY_COMPARE(buttonReleasedSpy.size(), 1);
+ QTRY_COMPARE(buttonClickedSpy.size(), 1);
}
void tst_QQuickControl::fractionalFontSize()