summaryrefslogtreecommitdiffstats
path: root/scripts/templates/common.tmpl
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-11-20 19:00:26 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-11-20 22:56:13 +0100
commit8e5a36d72286d134e33ad9496507b74b1503178a (patch)
tree1b2bfb5487cb68df54acae06e42c0387a519a32e /scripts/templates/common.tmpl
parenta264035bc9ef5a88447fb00e4edc1132e03e24bd (diff)
Add PropertyTypeRole enum value for representing real property types
Change-Id: I3b1a50c9e5c05133a81c2ccc50167b28b83a905d Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'scripts/templates/common.tmpl')
-rw-r--r--scripts/templates/common.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/templates/common.tmpl b/scripts/templates/common.tmpl
index fe2ca3b2..e0e205ba 100644
--- a/scripts/templates/common.tmpl
+++ b/scripts/templates/common.tmpl
@@ -583,6 +583,7 @@ void Q${namespace}${originalClassName}Object::unset${qtAttribute.remove("^is").u
Q_DECLARE_METAPROPERTY_INFO(Q${namespace}${className}, ${PLURALFORM(qtAttribute, attribute)}, AggregationRole, QStringLiteral("none"));
[%- END %]
Q_DECLARE_METAPROPERTY_INFO(Q${namespace}${className}, ${PLURALFORM(qtAttribute, attribute)}, PropertyClassRole, QStringLiteral("Q${namespace}${className}"));
+ Q_DECLARE_METAPROPERTY_INFO(Q${namespace}${className}, ${PLURALFORM(qtAttribute, attribute)}, PropertyTypeRole, QStringLiteral("${QT_TYPE(namespace, attribute, "true").trim}"));
Q_DECLARE_METAPROPERTY_INFO(Q${namespace}${className}, ${PLURALFORM(qtAttribute, attribute)}, IsDerivedRole, [% IF attribute.findvalue("@isDerived") == "true" %]true[% ELSE %]false[% END %]);
Q_DECLARE_METAPROPERTY_INFO(Q${namespace}${className}, ${PLURALFORM(qtAttribute, attribute)}, IsDerivedUnionRole, [% IF attribute.findvalue("@isDerivedUnion") == "true" %]true[% ELSE %]false[% END %]);
Q_DECLARE_METAPROPERTY_INFO(Q${namespace}${className}, ${PLURALFORM(qtAttribute, attribute)}, DocumentationRole, QStringLiteral("${attribute.findvalue("ownedComment/body/text()")}"));