diff options
Diffstat (limited to 'src/tools/ivigenerator/templates/frontend/struct.h.tpl')
-rw-r--r-- | src/tools/ivigenerator/templates/frontend/struct.h.tpl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tools/ivigenerator/templates/frontend/struct.h.tpl b/src/tools/ivigenerator/templates/frontend/struct.h.tpl index c9d4ea4..3eaa480 100644 --- a/src/tools/ivigenerator/templates/frontend/struct.h.tpl +++ b/src/tools/ivigenerator/templates/frontend/struct.h.tpl @@ -73,11 +73,10 @@ class {{exportsymbol}} {{class}} : public QIviStandardItem Q_CLASSINFO("IviPropertyDomains", "{{ struct.fields|json_domain|replace("\"", "\\\"") }}") public: - Q_INVOKABLE {{class}}(); - Q_INVOKABLE {{class}}(const {{class}} &rhs); + {{class}}(); + {{class}}(const {{class}} &rhs); {{class}} &operator=(const {{class}} &); - Q_INVOKABLE {{class}}({{struct.fields|map('parameter_type')|join(', ')}}); - Q_INVOKABLE {{class}}(const QVariant &variant); + {{class}}({{struct.fields|map('parameter_type')|join(', ')}}); ~{{class}}(); QString type() const override; @@ -97,6 +96,9 @@ public: {% endif %} {% endfor %} +protected: + Q_INVOKABLE void fromJSON(const QVariant &variant); + private: QSharedDataPointer<{{class}}Private> d; friend {{exportsymbol}} bool operator==(const {{class}} &left, const {{class}} &right) Q_DECL_NOTHROW; |