summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/effects
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2012-09-19 14:57:15 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-26 10:08:59 +0200
commit54d18cdc295dbd753647defd064e3ae92c161de0 (patch)
tree6997743e5cb72a58f3176da6bc21eca2e6ab4eb0 /tests/auto/widgets/effects
parent8b032fe423e854428c1c8324dcd0f8c6150b3503 (diff)
Auto tests: remove PlatformQuirks::isAutoMaximizing()
Use QStyleHints::showIsFullScreen() where necessary. Notice that QWidget::show() already calls showFullScreen() if appropriate, and Qt::X11BypassWindowManagerHint doesn't do anything in the XCB platform plugin. Change-Id: Ib8f61188c075170d646894388561cbb3f72daee8 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'tests/auto/widgets/effects')
-rw-r--r--tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp b/tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp
index ca1e1df9e1..1ddee7714a 100644
--- a/tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp
+++ b/tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp
@@ -50,7 +50,6 @@
#include <QtWidgets/qstyleoption.h>
#include <private/qgraphicseffect_p.h>
-#include "../../../platformquirks.h"
class tst_QGraphicsEffect : public QObject
{
@@ -703,10 +702,7 @@ void tst_QGraphicsEffect::prepareGeometryChangeInvalidateCache()
scene.addItem(item);
QGraphicsView view(&scene);
- if(PlatformQuirks::isAutoMaximizing())
- view.showFullScreen();
- else
- view.show();
+ view.show();
qApp->setActiveWindow(&view);
QVERIFY(QTest::qWaitForWindowActive(&view));
QTRY_VERIFY(item->nbPaint >= 1);