Commit f1bcbd1e authored by Gunnar Sletta's avatar Gunnar Sletta Committed by Qt by Nokia
Browse files

Support opening filedialog again in qmlscene


Change-Id: If6d7dded83a4bbb5d68b74741fc7a531165b7fef
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent 03213785
Branches
Tags
No related merge requests found
Showing with 5 additions and 0 deletions
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
#include <QtQuick/qquickview.h> #include <QtQuick/qquickview.h>
#ifdef QT_WIDGETS_LIB #ifdef QT_WIDGETS_LIB
#include <QtWidgets/QApplication>
#include <QtWidgets/QFileDialog> #include <QtWidgets/QFileDialog>
#endif #endif
...@@ -375,7 +376,11 @@ int main(int argc, char ** argv) ...@@ -375,7 +376,11 @@ int main(int argc, char ** argv)
} }
} }
#ifdef QT_WIDGETS_LIB
QApplication app(argc, argv);
#else
QGuiApplication app(argc, argv); QGuiApplication app(argc, argv);
#endif
app.setApplicationName("QtQmlViewer"); app.setApplicationName("QtQmlViewer");
app.setOrganizationName("Nokia"); app.setOrganizationName("Nokia");
app.setOrganizationDomain("nokia.com"); app.setOrganizationDomain("nokia.com");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment