From 8e5a36d72286d134e33ad9496507b74b1503178a Mon Sep 17 00:00:00 2001 From: "Sandro S. Andrade" Date: Wed, 20 Nov 2013 19:00:26 -0300 Subject: Add PropertyTypeRole enum value for representing real property types Change-Id: I3b1a50c9e5c05133a81c2ccc50167b28b83a905d Reviewed-by: Sandro S. Andrade --- scripts/templates/common.tmpl | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/templates/common.tmpl') 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()")}")); -- cgit v1.2.3