summaryrefslogtreecommitdiffstats
path: root/scripts/templates/common.tmpl
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-10-04 18:45:57 -0400
committerSandro S. Andrade <sandroandrade@kde.org>2013-10-05 00:46:47 +0200
commit94a8fdedb57cb8433e41e4d95a7d6009a88eea11 (patch)
tree7606c416df97a5f91f71a5c17e35c6495842f10c /scripts/templates/common.tmpl
parentd31c53a4e6aef364cfc1e596349100c100b5b77c (diff)
Fix issues when serializing dirty properties
Change-Id: Ibe13789eef7b13996a45051d5e8f4e59a2e2d2b6 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'scripts/templates/common.tmpl')
-rw-r--r--scripts/templates/common.tmpl6
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/templates/common.tmpl b/scripts/templates/common.tmpl
index a2a6ba08..22bad677 100644
--- a/scripts/templates/common.tmpl
+++ b/scripts/templates/common.tmpl
@@ -384,18 +384,12 @@ void Q${namespace}${originalClassName}Object::remove${attributeName}(${originalQ
void Q${namespace}${originalClassName}Object::set${attributeName}(${qtType}${qtAttribute})
{
qmodelingobjectproperty_cast<Q${namespace}${originalClassName} *>(this)->set${attributeName}(qmodelingobjectproperty_cast<${originalQtType}>(${qtAttribute}));
-[%- IF attribute.findvalue("defaultValue/@xmi:type") != "" %]
- qmodelingobjectproperty_cast<Q${namespace}${originalClassName} *>(this)->modifiedResettableProperties() << QStringLiteral("${attributeName.remove("^Is").lcfirst}");
-[%- END %]
}
[%- ELSE %]
void Q${namespace}${originalClassName}Object::set${attributeName.remove("^Is")}(${qtType}${qtAttribute})
{
qmodelingobjectproperty_cast<Q${namespace}${originalClassName} *>(this)->set${attributeName.remove("^Is")}(${qtAttribute});
-[%- IF attribute.findvalue("defaultValue/@xmi:type") != "" %]
- qmodelingobjectproperty_cast<Q${namespace}${originalClassName} *>(this)->modifiedResettableProperties() << QStringLiteral("${attributeName.remove("^Is").lcfirst}");
-[%- END %]
}
[%- END -%]