summaryrefslogtreecommitdiff
path: root/src/tools/ivigenerator/generate.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/ivigenerator/generate.py')
-rwxr-xr-xsrc/tools/ivigenerator/generate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/ivigenerator/generate.py b/src/tools/ivigenerator/generate.py
index fe88334..c19de65 100755
--- a/src/tools/ivigenerator/generate.py
+++ b/src/tools/ivigenerator/generate.py
@@ -248,7 +248,7 @@ def default_value_helper(symbol, res):
else:
return 'false'
if t.is_string:
- return 'QLatin1String("{0}")'.format(re.escape(res))
+ return 'QLatin1String("{0}")'.format(res.replace("\\", "\\\\"))
if t.is_var:
if isinstance(res, str):
res = 'QLatin1String("{0}")'.format(res)