diff options
Diffstat (limited to 'src/tools/ivigenerator/generate.py')
-rwxr-xr-x | src/tools/ivigenerator/generate.py | 2 |
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) |