Commit 4424397e authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

templates: fix controls template for ios



Task-number: QTCREATORBUG-10873
Change-Id: Idb20aece719bedbf4b505e6500ec62a7be916c11
Reviewed-by: default avatarCaroline Chao <caroline.chao@digia.com>
parent 95011ae5
......@@ -34,7 +34,11 @@ class QtQuick2ApplicationViewerPrivate
QString QtQuick2ApplicationViewerPrivate::adjustPath(const QString &path)
{
#if defined(Q_OS_MAC)
#if defined(Q_OS_IOS)
if (!QDir::isAbsolutePath(path))
return QString::fromLatin1("%1/%2")
.arg(QCoreApplication::applicationDirPath(), path);
#elif defined(Q_OS_MAC)
if (!QDir::isAbsolutePath(path))
return QStringLiteral("%1/../Resources/%2")
.arg(QCoreApplication::applicationDirPath(), path);
......
Markdown is supported
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