From 92b3ef24ed35b405f50ac67b2e51e74eb384451b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 4 Jun 2018 16:21:32 +0200 Subject: Fix window(child)geometry manual tests Task-number: QTBUG-67632 Change-Id: I16482d3501cc7c7893d6eac4617c77dc70e1e215 Reviewed-by: Gatis Paeglis --- tests/manual/windowchildgeometry/controllerwidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/manual/windowchildgeometry') diff --git a/tests/manual/windowchildgeometry/controllerwidget.cpp b/tests/manual/windowchildgeometry/controllerwidget.cpp index 871313d983..396fad53dc 100644 --- a/tests/manual/windowchildgeometry/controllerwidget.cpp +++ b/tests/manual/windowchildgeometry/controllerwidget.cpp @@ -236,7 +236,7 @@ private: WidgetWindowControl::WidgetWindowControl(QWidget *w ) : BaseWindowControl(w) - , m_statesControl(new WindowStatesControl(WindowStatesControl::WantVisibleCheckBox | WindowStatesControl::WantActiveCheckBox)) + , m_statesControl(new WindowStatesControl) { setTitle(w->windowTitle()); m_layout->addWidget(m_statesControl, 2, 0); @@ -364,14 +364,14 @@ private: virtual void setObjectWindowFlags(QObject *o, Qt::WindowFlags f) { static_cast(o)->setFlags(f); } - WindowStateControl *m_stateControl; + WindowStatesControl *m_statesControl; QWindow *m_window; QWindow *m_detachedParent; // set when this window is detached. This is the window we should re-attach to. }; WindowControl::WindowControl(QWindow *w ) : BaseWindowControl(w) - , m_stateControl(new WindowStateControl(WindowStateControl::WantVisibleCheckBox | WindowStateControl::WantMinimizeRadioButton)) + , m_statesControl(new WindowStatesControl) , m_window(w) , m_detachedParent(0) { -- cgit v1.2.3