aboutsummaryrefslogtreecommitdiffstats
path: root/qface/templates/qface/qtcpp.j2
diff options
context:
space:
mode:
Diffstat (limited to 'qface/templates/qface/qtcpp.j2')
-rw-r--r--qface/templates/qface/qtcpp.j25
1 files changed, 1 insertions, 4 deletions
diff --git a/qface/templates/qface/qtcpp.j2 b/qface/templates/qface/qtcpp.j2
index 97e1c8d..31c91fe 100644
--- a/qface/templates/qface/qtcpp.j2
+++ b/qface/templates/qface/qtcpp.j2
@@ -13,7 +13,7 @@
{% endif %}
{%- endmacro %}
-{% macro property(property, notifiable=True) -%}
+{% macro property_decl(property, notifiable=True) -%}
Q_PROPERTY({{property|returnType}} {{property}} READ {{property}} {% if not property.readonly %}WRITE set{{property|upperfirst}}{% endif %}{% if not property.const and notifiable %} NOTIFY {{property}}Changed{% endif %})
{%- endmacro %}
@@ -38,11 +38,9 @@ void {{symbol}}{{postfix}}({{symbol|parameters}});
\qmlproperty {{property.type}} {{class}}::{{property}}
{% with doc = property.comment|parse_doc %}
\brief {{doc.brief}}
-
{{doc.description}}
{% endwith %}
*/
-
void {{class}}::set{{property|upperfirst}}({{ property|parameterType }})
{
{% if notifiable %}
@@ -53,7 +51,6 @@ void {{class}}::set{{property|upperfirst}}({{ property|parameterType }})
{% else %}
m_{{property}} = {{property}};
{% endif %}
-
}
{%- endmacro %}