summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-12-13 11:06:15 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-14 04:50:42 +0100
commitf1bcbd1ebae5d7b894b4da51fd82de0d0d58e99d (patch)
tree4ffcb1b06202fc524b0ff6a4b184a4bac78a2de9 /tools
parent0321378516d6abdf17b81ec1678db3ef61057bed (diff)
Support opening filedialog again in qmlscene
Change-Id: If6d7dded83a4bbb5d68b74741fc7a531165b7fef Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlscene/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qmlscene/main.cpp b/tools/qmlscene/main.cpp
index 41113f16c0..19dd94bdbc 100644
--- a/tools/qmlscene/main.cpp
+++ b/tools/qmlscene/main.cpp
@@ -56,6 +56,7 @@
#include <QtQuick/qquickview.h>
#ifdef QT_WIDGETS_LIB
+#include <QtWidgets/QApplication>
#include <QtWidgets/QFileDialog>
#endif
@@ -375,7 +376,11 @@ int main(int argc, char ** argv)
}
}
+#ifdef QT_WIDGETS_LIB
+ QApplication app(argc, argv);
+#else
QGuiApplication app(argc, argv);
+#endif
app.setApplicationName("QtQmlViewer");
app.setOrganizationName("Nokia");
app.setOrganizationDomain("nokia.com");