summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicseffect
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@nokia.com>2010-07-26 16:15:47 +0200
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-02 15:28:44 +0100
commit9967695bf224d6518fa411f0441e0605e61e0bf5 (patch)
tree3f59c3bd33ed6c032f8197c424b76228a6e1e917 /tests/auto/qgraphicseffect
parentefc4e9c3602d569a8437db52c09edd7fb6a6dc34 (diff)
Fixed QGraphicsEffect autotest to use platform quirks
Diffstat (limited to 'tests/auto/qgraphicseffect')
-rw-r--r--tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp
index 07fa630066..5315cd1cf6 100644
--- a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp
+++ b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp
@@ -51,6 +51,7 @@
#include "../../shared/util.h"
#include <private/qgraphicseffect_p.h>
+#include "../platformquirks.h"
//TESTED_CLASS=
//TESTED_FILES=
@@ -710,7 +711,10 @@ void tst_QGraphicsEffect::prepareGeometryChangeInvalidateCache()
scene.addItem(item);
QGraphicsView view(&scene);
- view.show();
+ if(PlatformQuirks::isAutoMaximizing())
+ view.showFullScreen();
+ else
+ view.show();
QTest::qWaitForWindowShown(&view);
QTRY_COMPARE(item->nbPaint, 1);