From ef43195617de505d49137ebb46df2b2ddc7bc3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 24 Oct 2016 16:11:06 +0200 Subject: Fix build issues in windowchildgeometry manual test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia4cfe88dc30adbff0f00b5f8b846c78958a692d7 Reviewed-by: Tor Arne Vestbø --- tests/manual/windowchildgeometry/controllerwidget.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/manual/windowchildgeometry') diff --git a/tests/manual/windowchildgeometry/controllerwidget.cpp b/tests/manual/windowchildgeometry/controllerwidget.cpp index afea71f171..1d18c5d51b 100644 --- a/tests/manual/windowchildgeometry/controllerwidget.cpp +++ b/tests/manual/windowchildgeometry/controllerwidget.cpp @@ -284,7 +284,7 @@ public: { setObjectName(QStringLiteral("window")); setTitle(tr("TestWindow")); - setFlags(flags() | Qt::MacUseNSWindow); + setProperty("_q_platform_MacUseNSWindow", QVariant(true)); } protected: @@ -317,7 +317,7 @@ void Window::mousePressEvent(QMouseEvent * ev) m_mouseDownPosition = ev->pos(); } -void Window::mouseReleaseEvent(QMouseEvent * e) +void Window::mouseReleaseEvent(QMouseEvent *) { m_mouseDownPosition = QPoint(); } @@ -408,7 +408,6 @@ WindowControl::WindowControl(QWindow *w ) void WindowControl::refresh() { - const QWindow *w = static_cast(m_object); BaseWindowControl::refresh(); } -- cgit v1.2.3