summaryrefslogtreecommitdiff
path: root/examples/qtcpp/generator/templates/struct.h
blob: 951751228655521df1be8bafdd2383156c89546c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{# Copyright (c) Pelagicore AB 2016 #}
/****************************************************************************
** This is an auto-generated file.
** Do not edit! All changes made to it will be lost.
****************************************************************************/

#pragma once

#include <QtCore>

class {{struct}}
{
    Q_GADGET
{% for field in struct.fields %}
    Q_PROPERTY({{field|returnType}} {{field}} MEMBER m_{{field}})
{% endfor %}

public:
{% for field in struct.fields %}
    {{field|returnType}} m_{{field}};
{% endfor %}

    bool operator==(const {{struct}} &other) const;
};

Q_DECLARE_METATYPE({{struct}})