aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/ivigenerator/templates_frontend/struct.h.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/ivigenerator/templates_frontend/struct.h.tpl')
-rw-r--r--src/tools/ivigenerator/templates_frontend/struct.h.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/ivigenerator/templates_frontend/struct.h.tpl b/src/tools/ivigenerator/templates_frontend/struct.h.tpl
index da67518..e12e4a7 100644
--- a/src/tools/ivigenerator/templates_frontend/struct.h.tpl
+++ b/src/tools/ivigenerator/templates_frontend/struct.h.tpl
@@ -74,7 +74,7 @@ public:
Q_INVOKABLE {{class}}();
Q_INVOKABLE {{class}}(const {{class}} &rhs);
{{class}} &operator=(const {{class}} &);
- Q_INVOKABLE {{class}}({% for field in struct.fields %}{% if not loop.first %}, {% endif %}{{field|return_type}} {{field}}{% endfor %});
+ Q_INVOKABLE {{class}}({{struct.fields|map('parameter_type')|join(', ')}});
Q_INVOKABLE {{class}}(const QVariant &variant);
~{{class}}();