From 24604a44bbf444dfa198b45948ebeede2ff0d71c Mon Sep 17 00:00:00 2001 From: Bernd Weimer Date: Tue, 15 Apr 2014 14:26:58 +0200 Subject: QNX: Fix qquickimage mirror auto test Change-Id: If43d9eb411dee374faa1f9d85325ba449242aec8 Reviewed-by: Fabian Bumberger --- tests/auto/quick/qquickimage/tst_qquickimage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/auto') diff --git a/tests/auto/quick/qquickimage/tst_qquickimage.cpp b/tests/auto/quick/qquickimage/tst_qquickimage.cpp index 0855403d5a..0e012c5c6a 100644 --- a/tests/auto/quick/qquickimage/tst_qquickimage.cpp +++ b/tests/auto/quick/qquickimage/tst_qquickimage.cpp @@ -308,6 +308,10 @@ void tst_qquickimage::mirror() qreal height = 250; foreach (QQuickImage::FillMode fillMode, fillModes) { +#if defined(Q_OS_BLACKBERRY) + QWindow dummy; // On BlackBerry first window is always full screen, + dummy.showFullScreen(); // so make test window a second window. +#endif QQuickView *window = new QQuickView; window->setSource(testFileUrl("mirror.qml")); @@ -316,7 +320,7 @@ void tst_qquickimage::mirror() obj->setFillMode(fillMode); obj->setProperty("mirror", true); - window->show(); + window->showNormal(); QVERIFY(QTest::qWaitForWindowExposed(window)); QImage screenshot = window->grabWindow(); -- cgit v1.2.1