aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Schröder <holger.schroeder.ext@basyskom.de>2011-01-13 19:54:34 +0100
committerHolger Schröder <holger.schroeder.ext@basyskom.de>2011-01-13 19:54:34 +0100
commit7b8435759b90a7c9c63f5e7cf1e2b808c604fa14 (patch)
treef1cfb04f3a1b2f7a9afbac9b0acda4605d60f599
parentfb708939845f84a7e43bd34f225caa03a8092daa (diff)
Changes: make the creation of the binary cache file name also work under windows
RevBy: Armin Berres
-rw-r--r--src/corelib/style/mstylesheetparser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/style/mstylesheetparser.cpp b/src/corelib/style/mstylesheetparser.cpp
index e5e413c7..fc1d0819 100644
--- a/src/corelib/style/mstylesheetparser.cpp
+++ b/src/corelib/style/mstylesheetparser.cpp
@@ -942,6 +942,9 @@ QString MStyleSheetParserPrivate::createBinaryFilename(const QString &filename)
QString absoluteFilePathEncoded(filename);
absoluteFilePathEncoded.replace('_', "__");
absoluteFilePathEncoded.replace('/', "_.");
+ // also replace windows directory separators and the drive letter separator
+ absoluteFilePathEncoded.replace('\\', "_.");
+ absoluteFilePathEncoded.replace(':', "_.");
binaryFilename += absoluteFilePathEncoded;
return binaryFilename;
}