summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--tests/auto/platformquirks.h12
-rw-r--r--tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp6
-rw-r--r--tests/auto/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp33
-rw-r--r--tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp11
-rw-r--r--tests/auto/widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp6
-rw-r--r--tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp4
-rw-r--r--tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp4
-rw-r--r--tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp7
8 files changed, 15 insertions, 68 deletions
diff --git a/tests/auto/platformquirks.h b/tests/auto/platformquirks.h
index f68879f865..9bd9adda83 100644
--- a/tests/auto/platformquirks.h
+++ b/tests/auto/platformquirks.h
@@ -51,18 +51,6 @@
struct PlatformQuirks
{
- /* Some windowing systems automatically maximize apps on startup (e.g. Maemo)
- "Normal" fixed-sized windows do not work, the WM ignores their size settings.
- */
- static inline bool isAutoMaximizing()
- {
-#if defined(Q_WS_X11)
- return X11->desktopEnvironment == DE_MEEGO_COMPOSITOR;
-#else
- return false;
-#endif
- }
-
static inline bool haveMouseCursor()
{
#if defined(Q_WS_X11)
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);
diff --git a/tests/auto/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp
index 4c4e27e2e3..73bca1ca3d 100644
--- a/tests/auto/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -65,6 +65,7 @@
#include <QLineEdit>
#include <QGraphicsLinearLayout>
#include <float.h>
+#include <QStyleHints>
Q_DECLARE_METATYPE(QList<int>)
Q_DECLARE_METATYPE(QList<QRectF>)
@@ -72,6 +73,8 @@ Q_DECLARE_METATYPE(QPainterPath)
Q_DECLARE_METATYPE(QPointF)
Q_DECLARE_METATYPE(QRectF)
+#include "../../../platformquirks.h"
+
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
#include <windows.h>
#define Q_CHECK_PAINTEVENTS \
@@ -89,8 +92,6 @@ Q_DECLARE_METATYPE(QRectF)
#define COMPARE_REGIONS QTRY_COMPARE
#endif
-#include "../../../platformquirks.h"
-
static QGraphicsRectItem staticItem; //QTBUG-7629, we should not crash at exit.
static void sendMousePress(QGraphicsScene *scene, const QPointF &point, Qt::MouseButton button = Qt::LeftButton)
@@ -5067,11 +5068,7 @@ void tst_QGraphicsItem::paint()
scene.addItem(&paintTester);
QGraphicsView view(&scene);
-
- if(PlatformQuirks::isAutoMaximizing())
- view.showFullScreen();
- else
- view.show();
+ view.show();
QVERIFY(QTest::qWaitForWindowExposed(&view));
QApplication::processEvents();
#ifdef Q_OS_WIN32
@@ -6706,10 +6703,7 @@ void tst_QGraphicsItem::opacity2()
scene.addItem(parent);
MyGraphicsView view(&scene);
- if(PlatformQuirks::isAutoMaximizing())
- view.showFullScreen();
- else
- view.show();
+ view.show();
QVERIFY(QTest::qWaitForWindowActive(&view));
QTRY_VERIFY(view.repaints >= 1);
@@ -8064,7 +8058,7 @@ void tst_QGraphicsItem::sorting_data()
void tst_QGraphicsItem::sorting()
{
- if (PlatformQuirks::isAutoMaximizing())
+ if (qGuiApp->styleHints()->showIsFullScreen())
QSKIP("Skipped because Platform is auto maximizing");
_paintedItems.clear();
@@ -10853,10 +10847,7 @@ void tst_QGraphicsItem::QTBUG_6738_missingUpdateWithSetParent()
scene.addItem(parent);
MyGraphicsView view(&scene);
- if(PlatformQuirks::isAutoMaximizing())
- view.showFullScreen();
- else
- view.show();
+ view.show();
qApp->setActiveWindow(&view);
QVERIFY(QTest::qWaitForWindowActive(&view));
QTRY_VERIFY(view.repaints > 0);
@@ -10905,10 +10896,7 @@ void tst_QGraphicsItem::QT_2653_fullUpdateDiscardingOpacityUpdate()
// ItemIgnoresTransformations, ItemClipsChildrenToShape, ItemIsSelectable
parentGreen->setFlag(QGraphicsItem::ItemIgnoresTransformations);
- if (PlatformQuirks::isAutoMaximizing())
- view.showFullScreen();
- else
- view.show();
+ view.show();
QVERIFY(QTest::qWaitForWindowActive(&view));
view.reset();
@@ -11093,10 +11081,7 @@ void tst_QGraphicsItem::doNotMarkFullUpdateIfNotInScene()
item3->setParentItem(item2);
item2->setParentItem(item);
scene.addItem(item);
- if(PlatformQuirks::isAutoMaximizing())
- view.showFullScreen();
- else
- view.show();
+ view.show();
QTest::qWaitForWindowActive(view.windowHandle());
view.activateWindow();
QTRY_VERIFY(view.isActiveWindow());
diff --git a/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
index c542bc413b..43064dd540 100644
--- a/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
+++ b/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
@@ -425,8 +425,6 @@ void tst_QGraphicsView::interactive()
scene.addItem(item);
QGraphicsView view(&scene);
- if (PlatformQuirks::isAutoMaximizing())
- view.setWindowFlags(view.windowFlags()|Qt::X11BypassWindowManagerHint);
view.setFixedSize(300, 300);
QCOMPARE(item->events.size(), 0);
view.show();
@@ -1288,9 +1286,6 @@ void tst_QGraphicsView::fitInView()
view.setFixedSize(400, 200);
#endif
- if (PlatformQuirks::isAutoMaximizing())
- view.setWindowFlags(view.windowFlags()|Qt::X11BypassWindowManagerHint);
-
view.show();
view.fitInView(scene.itemsBoundingRect(), Qt::IgnoreAspectRatio);
qApp->processEvents();
@@ -1518,8 +1513,6 @@ void tst_QGraphicsView::itemsInRect_cosmeticAdjust()
QGraphicsView view(&scene);
view.setOptimizationFlag(QGraphicsView::DontAdjustForAntialiasing, !adjustForAntialiasing);
view.setRenderHint(QPainter::Antialiasing, adjustForAntialiasing);
- if (PlatformQuirks::isAutoMaximizing())
- view.setWindowFlags(view.windowFlags()|Qt::X11BypassWindowManagerHint);
view.setFrameStyle(0);
view.resize(300, 300);
view.show();
@@ -2328,8 +2321,6 @@ void tst_QGraphicsView::viewportUpdateMode()
QDesktopWidget desktop;
view.setFixedSize(QSize(500, 500).boundedTo(desktop.availableGeometry().size())); // 500 is too big for all common smartphones
view.setScene(&scene);
- if(PlatformQuirks::isAutoMaximizing())
- view.setWindowFlags(view.windowFlags()|Qt::X11BypassWindowManagerHint);
QCOMPARE(view.viewportUpdateMode(), QGraphicsView::MinimalViewportUpdate);
// Show the view, and initialize our test.
@@ -4489,8 +4480,6 @@ void tst_QGraphicsView::QTBUG_5859_exposedRect()
scene.addItem(&item);
QGraphicsView view(&scene);
- if (PlatformQuirks::isAutoMaximizing())
- view.setWindowFlags(view.windowFlags()|Qt::X11BypassWindowManagerHint);
view.scale(4.15, 4.15);
view.show();
qApp->setActiveWindow(&view);
diff --git a/tests/auto/widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp b/tests/auto/widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp
index a501b0cd3f..177670bb84 100644
--- a/tests/auto/widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp
+++ b/tests/auto/widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp
@@ -52,7 +52,6 @@
#include <qboxlayout.h>
#include <qaction.h>
#include <qwidgetaction.h>
-#include "../../../platformquirks.h"
class EventSpy : public QObject
@@ -3128,10 +3127,7 @@ void tst_QGraphicsWidget::initialShow()
MyGraphicsWidget *widget = new MyGraphicsWidget;
QGraphicsView view(&scene);
- if(PlatformQuirks::isAutoMaximizing())
- view.showFullScreen();
- else
- view.show();
+ view.show();
qApp->setActiveWindow(&view);
QVERIFY(QTest::qWaitForWindowActive(&view));
diff --git a/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp b/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp
index d1a2a52707..7787f79620 100644
--- a/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp
+++ b/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp
@@ -54,8 +54,6 @@
#include <QtWidgets/QWindowsStyle>
#include <QStyleFactory>
-#include "../../../platformquirks.h"
-
class tst_QGridLayout : public QObject
{
Q_OBJECT
@@ -667,8 +665,6 @@ void tst_QGridLayout::spacingsAndMargins()
QApplication::setStyle(new Qt42Style);
QWidget toplevel;
- if(PlatformQuirks::isAutoMaximizing())
- toplevel.setWindowFlags(Qt::X11BypassWindowManagerHint);
QVBoxLayout vbox(&toplevel);
QGridLayout grid1;
vbox.addLayout(&grid1);
diff --git a/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp b/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
index 29b13fc5a0..899f9ce543 100644
--- a/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
+++ b/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
@@ -53,9 +53,9 @@
#include <qpushbutton.h>
#include <qlabel.h>
#include <qtextedit.h>
+#include <qstylehints.h>
#include <private/qmainwindowlayout_p.h>
#include <private/qdockarealayout_p.h>
-#include "../../../platformquirks.h"
static uchar restoreData41[] = { 0x0, 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0xfc, 0x0, 0x0, 0x0, 0x0, 0xfd, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x64, 0x0, 0x0, 0x1, 0x19, 0xfc, 0x2, 0x0, 0x0, 0x0, 0x4, 0xfb, 0x0, 0x0, 0x0, 0xc, 0x0, 0x64, 0x0, 0x6f, 0x0, 0x63, 0x0, 0x6b, 0x0, 0x20, 0x0, 0x30, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x45, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff, 0xff, 0xfb, 0x0, 0x0, 0x0, 0xc, 0x0, 0x64, 0x0, 0x6f, 0x0, 0x63, 0x0, 0x6b, 0x0, 0x20, 0x0, 0x34, 0x1, 0x0, 0x0, 0x0, 0x49, 0x0, 0x0, 0x0, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff, 0xff, 0xfb, 0x0, 0x0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, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x8};
@@ -1683,7 +1683,7 @@ void tst_QMainWindow::addToolbarAfterShow()
void tst_QMainWindow::centralWidgetSize()
{
- if(PlatformQuirks::isAutoMaximizing())
+ if (qGuiApp->styleHints()->showIsFullScreen())
QSKIP("The platform is auto maximizing, so the test makes no sense");;
QMainWindow mainWindow;
diff --git a/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp b/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp
index 393c84f4a8..259ec2ecd3 100644
--- a/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp
+++ b/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp
@@ -61,8 +61,7 @@
#include <QtOpenGL>
#endif
#include <QMacStyle>
-
-#include "../../../platformquirks.h"
+#include <QStyleHints>
static const Qt::WindowFlags DefaultWindowFlags
= Qt::SubWindow | Qt::WindowSystemMenuHint
@@ -502,7 +501,7 @@ void tst_QMdiArea::subWindowActivated2()
QCOMPARE(mdiArea.activeSubWindow(), activeSubWindow);
spy.clear();
- if (PlatformQuirks::isAutoMaximizing())
+ if (qGuiApp->styleHints()->showIsFullScreen())
QSKIP("Platform is auto maximizing, so no showMinimized()");
// Check that we only emit _one_ signal and the active window
@@ -1576,8 +1575,6 @@ void tst_QMdiArea::tileSubWindows()
{
QMdiArea workspace;
workspace.resize(600,480);
- if (PlatformQuirks::isAutoMaximizing())
- workspace.setWindowFlags(workspace.windowFlags() | Qt::X11BypassWindowManagerHint);
workspace.show();
QVERIFY(QTest::qWaitForWindowExposed(&workspace));