aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlcachegen
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2018-03-26 13:24:43 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-03-27 18:44:32 +0000
commite09a02fac0d1ecbffeebcb2012ecc659c8986a4e (patch)
tree3a78fa3f024ff606204cacb947f83e9e7df32dd4 /tools/qmlcachegen
parent3ae0e1504e94e5c531fa5e919cc8e9f503a5bd34 (diff)
Fix CONFIG+=qtquickcompiler with paths that contain spaces
Map spaces to underscores as well. Task-number: QTBUG-54683 Change-Id: Id73c086a2845111623df631c06733ba2b42249e0 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'tools/qmlcachegen')
-rw-r--r--tools/qmlcachegen/generateloader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmlcachegen/generateloader.cpp b/tools/qmlcachegen/generateloader.cpp
index a2e673d15a..96528a9477 100644
--- a/tools/qmlcachegen/generateloader.cpp
+++ b/tools/qmlcachegen/generateloader.cpp
@@ -51,6 +51,7 @@ QString symbolNamespaceForPath(const QString &relativePath)
symbol.replace(QLatin1Char('.'), QLatin1Char('_'));
symbol.replace(QLatin1Char('+'), QLatin1Char('_'));
symbol.replace(QLatin1Char('-'), QLatin1Char('_'));
+ symbol.replace(QLatin1Char(' '), QLatin1Char('_'));
return symbol;
}