Show fullscreen button in qmlscene on Mac
authorGunnar Sletta <gunnar.sletta@digia.com>
Thu, 21 Mar 2013 08:56:37 +0000 (09:56 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 2 Apr 2013 06:29:49 +0000 (08:29 +0200)
Change-Id: I3202e8e7461f457eeb73a82b7a8da40a11e4f76d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
tools/qmlscene/main.cpp

index 1e7c6e1..afc4be8 100644 (file)
@@ -491,7 +491,7 @@ int main(int argc, char ** argv)
                     // Set window default properties; the qml can still override them
                     QString oname = contentItem->objectName();
                     window->setTitle(oname.isEmpty() ? QString::fromLatin1("qmlscene") : QString::fromLatin1("qmlscene: ") + oname);
-                    window->setFlags(Qt::Window | Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
+                    window->setFlags(Qt::Window | Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint | Qt::WindowFullscreenButtonHint);
                     if (options.resizeViewToRootItem)
                         qxView->setResizeMode(QQuickView::SizeViewToRootObject);
                     else