Make show app on top work
authorKai Koehne <kai.koehne@nokia.com>
Thu, 20 Oct 2011 09:53:18 +0000 (11:53 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 24 Oct 2011 16:00:18 +0000 (18:00 +0200)
Change-Id: I21328e57e5130fb6d375a982cb4922b3facfad21
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
src/plugins/qmltooling/qmldbg_inspector/sgviewinspector.cpp

index 1afeeec..7b573ca 100644 (file)
@@ -200,7 +200,9 @@ void SGViewInspector::setWindowFlags(Qt::WindowFlags flags)
 {
     QWindow *w = getMasterWindow(m_view);
     w->setWindowFlags(flags);
-    w->show();
+    // make flags are applied
+    w->setVisible(false);
+    w->setVisible(true);
 }
 
 QDeclarativeEngine *SGViewInspector::declarativeEngine() const