summaryrefslogtreecommitdiffstats
path: root/scripts/templates/qclass.cpp
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/qclass.cpp
parentd31c53a4e6aef364cfc1e596349100c100b5b77c (diff)
Fix issues when serializing dirty properties
Change-Id: Ibe13789eef7b13996a45051d5e8f4e59a2e2d2b6 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'scripts/templates/qclass.cpp')
-rw-r--r--scripts/templates/qclass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/templates/qclass.cpp b/scripts/templates/qclass.cpp
index 6b312184..19935695 100644
--- a/scripts/templates/qclass.cpp
+++ b/scripts/templates/qclass.cpp
@@ -332,6 +332,9 @@ void Q${namespace}${className}::set${attributeName.remove("^Is")}([% IF !qtType.
// <derived-code>
[%- ELSE %]
_${qtAttribute} = ${qtAttribute};
+[%- IF attribute.findvalue("defaultValue/@xmi:type") != "" %]
+ _modifiedResettableProperties << QStringLiteral("${attributeName.lcfirst}");
+[%- END %]
[%- IF qtType.match('\*') %]
if (${qtAttribute} && ${qtAttribute}->asQObject() && this->asQObject())
QObject::connect(${qtAttribute}->asQObject(), SIGNAL(destroyed()), this->asQObject(), SLOT(set${attributeName}()));