summaryrefslogtreecommitdiff
path: root/qmake
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2010-04-29 16:37:30 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2010-04-30 09:37:42 +0300
commit160b51018e1e365130173838f9c91a9cb4061ad7 (patch)
tree69a938816fdd496b1b54fd94c565b0a6ff011fe2 /qmake
parent0d32f1727e50f8e8c252aa208ae811a757671620 (diff)
downloadqt4-tools-160b51018e1e365130173838f9c91a9cb4061ad7.tar.gz
Fix path removal from target in Symbian builds
Qt generic slash separator must be supported also in platforms that do not have that as platform specific separator. Reviewed-by: Thomas Zander
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/symbian/symbiancommon.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/qmake/generators/symbian/symbiancommon.cpp b/qmake/generators/symbian/symbiancommon.cpp
index 0802c0190d..b730d9ea7a 100644
--- a/qmake/generators/symbian/symbiancommon.cpp
+++ b/qmake/generators/symbian/symbiancommon.cpp
@@ -464,9 +464,12 @@ void SymbianCommonGenerator::generatePkgFile(const QString &iconFile, bool epocB
QString SymbianCommonGenerator::removePathSeparators(QString &file)
{
QString ret = file;
- while (ret.indexOf(QDir::separator()) > 0) {
- ret.remove(0, ret.indexOf(QDir::separator()) + 1);
- }
+
+ if (QDir::separator().unicode() != '/')
+ ret.replace(QDir::separator(), QLatin1Char('/'));
+
+ if (ret.indexOf(QLatin1Char('/')) > 0)
+ ret.remove(0, ret.lastIndexOf(QLatin1Char('/')) + 1);
return ret;
}