OSDN Git Service

QtQuickApp: Use QCoreApplication::applicationDirPath also for Harmattan
authorKai Koehne <kai.koehne@nokia.com>
Tue, 6 Sep 2011 14:57:11 +0000 (16:57 +0200)
committerEike Ziller <eike.ziller@nokia.com>
Mon, 12 Sep 2011 08:22:06 +0000 (10:22 +0200)
Latest Harmattan sources deprecate MDeclarativeCache::applicationDirPath

http://meego.gitorious.org/meegotouch/meegotouch-applauncherd/commit/1c93b10b0aa6fa528d1a49e029a7158b4e2cea8d/diffs

Change-Id: I4342c567265d192a580d572c6bec8d28ab363120
Reviewed-on: http://codereview.qt-project.org/4275
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
share/qtcreator/templates/qtquickapp/qmlapplicationviewer/qmlapplicationviewer.cpp

index c7ccf08..3ef6512 100644 (file)
@@ -66,11 +66,7 @@ QString QmlApplicationViewerPrivate::adjustPath(const QString &path)
                 + QLatin1String("/../Resources/") + path;
 #else
     QString pathInInstallDir;
-#ifdef HARMATTAN_BOOSTER
-    QString applicationDirPath = MDeclarativeCache::applicationDirPath();
-#else
-    QString applicationDirPath = QCoreApplication::applicationDirPath();
-#endif
+    const QString applicationDirPath = QCoreApplication::applicationDirPath();
     pathInInstallDir = QString::fromAscii("%1/../%2").arg(applicationDirPath, path);
 
     if (QFileInfo(pathInInstallDir).exists())