diff options
author | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-18 00:34:29 -0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-18 04:30:24 +0100 |
commit | 7030dc08e8a9198390ccf038d3c8629b047e4749 (patch) | |
tree | f8ea8f519e6a0e369ecae068003e61f7ac127f24 /scripts/templates | |
parent | a1ced4d08cd55dccaf4d720880632ba8551bb109 (diff) |
Update MOF and DuSE metamodels
UML updating coming soon
Change-Id: Icc4cc0ea005bce01db8fb0f0ea0636ed166a980a
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'scripts/templates')
-rw-r--r-- | scripts/templates/common.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/templates/common.tmpl b/scripts/templates/common.tmpl index 17b302e3..fe2ca3b2 100644 --- a/scripts/templates/common.tmpl +++ b/scripts/templates/common.tmpl @@ -473,7 +473,7 @@ void Q${namespace}${originalClassName}Object::unset${qtAttribute.remove("^is").u [%- ELSIF defaultType == "uml:LiteralUnlimitedNatural" -%] [%- SET defaultValue = attribute.findvalue("defaultValue/@value") -%] [%- IF defaultValue != "" -%] - set${qtAttribute.remove("^is").ucfirst}(${defaultValue}); + set${qtAttribute.remove("^is").ucfirst}(QStringLiteral("${defaultValue}")); [%- ELSE -%] set${qtAttribute.remove("^is").ucfirst}(QStringLiteral("")); [%- END -%] |