forked from qt-creator/qt-creator
QtQuickApp: Use QCoreApplication::applicationDirPath also for Harmattan
Latest Harmattan sources deprecate MDeclarativeCache::applicationDirPath
1c93b10b0a/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>
This commit is contained in:
@@ -66,11 +66,7 @@ QString QmlApplicationViewerPrivate::adjustPath(const QString &path)
|
|||||||
+ QLatin1String("/../Resources/") + path;
|
+ QLatin1String("/../Resources/") + path;
|
||||||
#else
|
#else
|
||||||
QString pathInInstallDir;
|
QString pathInInstallDir;
|
||||||
#ifdef HARMATTAN_BOOSTER
|
const QString applicationDirPath = QCoreApplication::applicationDirPath();
|
||||||
QString applicationDirPath = MDeclarativeCache::applicationDirPath();
|
|
||||||
#else
|
|
||||||
QString applicationDirPath = QCoreApplication::applicationDirPath();
|
|
||||||
#endif
|
|
||||||
pathInInstallDir = QString::fromAscii("%1/../%2").arg(applicationDirPath, path);
|
pathInInstallDir = QString::fromAscii("%1/../%2").arg(applicationDirPath, path);
|
||||||
|
|
||||||
if (QFileInfo(pathInInstallDir).exists())
|
if (QFileInfo(pathInInstallDir).exists())
|
||||||
|
Reference in New Issue
Block a user