summaryrefslogtreecommitdiffstats
path: root/src/macdeployqt/macdeployqt/main.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@theqtcompany.com>2015-08-12 13:54:31 +0200
committerMorten Johan Sørvig <morten.sorvig@theqtcompany.com>2015-08-13 10:14:02 +0000
commit1f843b7d1060a382dca7d42557d52af6009f6168 (patch)
tree5c24d56fd8a6e93e1b2a22f780d3b81b761e6fb0 /src/macdeployqt/macdeployqt/main.cpp
parentcb96c4973404c25249a6e7a5e5a1e428dd1885e1 (diff)
macdeployqt: Work around broken QLibraryInfo
Add fallback code path for locating qmlimportscanner relative to the macdeployqt binary. Task-number: QTBUG-46404 Change-Id: I9c837b5da518af45cef1292f9cd0422fccba8e5f Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
Diffstat (limited to 'src/macdeployqt/macdeployqt/main.cpp')
-rw-r--r--src/macdeployqt/macdeployqt/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/macdeployqt/macdeployqt/main.cpp b/src/macdeployqt/macdeployqt/main.cpp
index 9c6e3fe03..3cc8f5a8e 100644
--- a/src/macdeployqt/macdeployqt/main.cpp
+++ b/src/macdeployqt/macdeployqt/main.cpp
@@ -30,11 +30,15 @@
** $QT_END_LICENSE$
**
****************************************************************************/
+#include <QCoreApplication>
+#include <QDir>
+
#include "../shared/shared.h"
-#include <qdir.h>
int main(int argc, char **argv)
{
+ QCoreApplication app(argc, argv);
+
QString appBundlePath;
if (argc > 1)
appBundlePath = QString::fromLocal8Bit(argv[1]);