summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2010-10-11 14:55:01 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-10-11 14:56:16 (GMT)
commitb1a8c2e50a7d8768da97a9782c393a0cb29458f6 (patch)
treeb2f228130025f77d0b42957395e502d2c1203062 /qmake
parent6a23821f82e3e609c3e51df0068b188d81219812 (diff)
downloadQt-b1a8c2e50a7d8768da97a9782c393a0cb29458f6.zip
Qt-b1a8c2e50a7d8768da97a9782c393a0cb29458f6.tar.gz
Qt-b1a8c2e50a7d8768da97a9782c393a0cb29458f6.tar.bz2
qmake/symbian: Add icons with backslashes in pkg files
The destination path in pkg files always uses backslashes, not the path separator native to the build system. Merge-request: 853 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/symbian/symbiancommon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qmake/generators/symbian/symbiancommon.cpp b/qmake/generators/symbian/symbiancommon.cpp
index 9af3fe4..6fea8fd 100644
--- a/qmake/generators/symbian/symbiancommon.cpp
+++ b/qmake/generators/symbian/symbiancommon.cpp
@@ -428,9 +428,9 @@ void SymbianCommonGenerator::generatePkgFile(const QString &iconFile, bool epocB
t << QString("\"%1epoc32/data/z%2\" - \"!:%3\"")
.arg(epocRoot())
.arg(iconFile)
- .arg(QDir::toNativeSeparators(iconFile)) << endl << endl;
+ .arg(QString(iconFile).replace('/', '\\')) << endl << endl;
ts << QString("\"\" - \"%1\"")
- .arg(romPath(QDir::toNativeSeparators(iconFile))) << endl << endl;
+ .arg(romPath(QString(iconFile).replace('/', '\\'))) << endl << endl;
} else {
QDir mifIconDir(project->first("DESTDIR"));
QFileInfo mifIcon(mifIconDir.relativeFilePath(project->first("TARGET")));
@@ -439,9 +439,9 @@ void SymbianCommonGenerator::generatePkgFile(const QString &iconFile, bool epocB
t << QString("\"%1/%2\" - \"!:%3\"")
.arg(mifIcon.path())
.arg(mifIconFileName)
- .arg(QDir::toNativeSeparators(iconFile)) << endl << endl;
+ .arg(QString(iconFile).replace('/', '\\')) << endl << endl;
ts << QString("\"\" - \"%1\"")
- .arg(romPath(QDir::toNativeSeparators(iconFile))) << endl << endl;
+ .arg(romPath(QString(iconFile).replace('/', '\\'))) << endl << endl;
}
}
}