Commit c00ee670 authored by Kai Koehne's avatar Kai Koehne Committed by Eike Ziller
Browse files

QtQuickApp: Use QCoreApplication::applicationDirPath also for Harmattan

Latest Harmattan sources deprecate MDeclarativeCache::applicationDirPath

Change-Id: I4342c567265d192a580d572c6bec8d28ab363120

Reviewed-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarEike Ziller <>
parent ad22dc76
......@@ -66,11 +66,7 @@ QString QmlApplicationViewerPrivate::adjustPath(const QString &path)
+ QLatin1String("/../Resources/") + path;
QString pathInInstallDir;
QString applicationDirPath = MDeclarativeCache::applicationDirPath();
QString applicationDirPath = QCoreApplication::applicationDirPath();
const QString applicationDirPath = QCoreApplication::applicationDirPath();
pathInInstallDir = QString::fromAscii("%1/../%2").arg(applicationDirPath, path);
if (QFileInfo(pathInInstallDir).exists())
Supports Markdown
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