aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickscreen/tst_qquickscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickscreen/tst_qquickscreen.cpp')
-rw-r--r--tests/auto/quick/qquickscreen/tst_qquickscreen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickscreen/tst_qquickscreen.cpp b/tests/auto/quick/qquickscreen/tst_qquickscreen.cpp
index 64547108b8..ccdf69facf 100644
--- a/tests/auto/quick/qquickscreen/tst_qquickscreen.cpp
+++ b/tests/auto/quick/qquickscreen/tst_qquickscreen.cpp
@@ -50,7 +50,7 @@ void tst_qquickscreen::basicProperties()
QCOMPARE(screen->geometry().x(), root->property("vx").toInt());
QCOMPARE(screen->geometry().y(), root->property("vy").toInt());
- QVERIFY(root->property("screenCount").toInt() == QGuiApplication::screens().count());
+ QVERIFY(root->property("screenCount").toInt() == QGuiApplication::screens().size());
}
void tst_qquickscreen::screenOnStartup()
@@ -89,7 +89,7 @@ void tst_qquickscreen::fullScreenList()
QVERIFY(screensArray.isArray());
int length = screensArray.property("length").toInt();
const QList<QScreen *> screenList = QGuiApplication::screens();
- QVERIFY(length == screenList.count());
+ QVERIFY(length == screenList.size());
for (int i = 0; i < length; ++i) {
QQuickScreenInfo *info = qobject_cast<QQuickScreenInfo *>(screensArray.property(i).toQObject());