summaryrefslogtreecommitdiff
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.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/qface/templates/qface/qtcpp.j2 b/qface/templates/qface/qtcpp.j2
index 56b81a8..a022e69 100644
--- a/qface/templates/qface/qtcpp.j2
+++ b/qface/templates/qface/qtcpp.j2
@@ -109,6 +109,10 @@ void {{class}}::{{verb}}{{property|upperfirst}}({{ property|qt.parameterType }})
}
{%- endmacro %}
+{% macro operation_impl_start(class, operation, void=False, doc=True) -%}
+{% if not void -%}{{operation|qt.returnType}}{%- else %}void{% endif %} {{class}}::{{operation}}({{operation|qt.parameters}})
+{%- endmacro %}
+
{% macro operation_decl(operation, ending=";", void=False) -%}
{% if void %}
virtual void {{operation}}({{operation|qt.parameters}}){{ending}}