Don't crash when running qhelpgenerator.
authorLincoln Ramsay <lincoln.ramsay@nokia.com>
Mon, 26 Sep 2011 07:36:42 +0000 (17:36 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 30 Sep 2011 06:06:02 +0000 (08:06 +0200)
It's not enough to link to libQtGui, QGuiApplication must also be used.

Change-Id: Ie8ea0e3aa711308052fcbd4e670eef7fc1269403
Reviewed-on: http://codereview.qt-project.org/5516
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/assistant/qhelpgenerator/main.cpp

index d1d1cc6..a281df6 100644 (file)
@@ -43,7 +43,7 @@
 
 #include <QtCore/QDir>
 #include <QtCore/QFileInfo>
-#include <QtCore/QCoreApplication>
+#include <QtGui/QGuiApplication>
 #include <QtCore/QTranslator>
 #include <QtCore/QLocale>
 #include <QtCore/QLibraryInfo>
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
     bool showVersion = false;
     bool checkLinks = false;
 
-    QCoreApplication app(argc, argv);
+    QGuiApplication app(argc, argv);
 #ifndef Q_OS_WIN32
     QTranslator translator;
     QTranslator qtTranslator;