aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickimage
diff options
context:
space:
mode:
authorBernd Weimer <bweimer@blackberry.com>2014-04-15 14:26:58 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-24 10:38:49 +0200
commit24604a44bbf444dfa198b45948ebeede2ff0d71c (patch)
tree9ee94643fc4517ab879a48cb93e55563ec3679ec /tests/auto/quick/qquickimage
parentdcded5f0c0693dafd1de2c60269da7e569c6957e (diff)
QNX: Fix qquickimage mirror auto test
Change-Id: If43d9eb411dee374faa1f9d85325ba449242aec8 Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'tests/auto/quick/qquickimage')
-rw-r--r--tests/auto/quick/qquickimage/tst_qquickimage.cpp6
1 files changed, 5 insertions, 1 deletions
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();