blob: b1fe352fab86e8890899ece1a3385a1463b1033a (
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
29
30
31
32
33
34
35
36
37
|
#include <QPoint>
#include "../namespace.h"
USE_ENUM(Qt::DateFormat)
USE_ENUM(NS::NamespaceEnum)
POD MyPOD(int i, float f, QString s)
POD VariantPOD(int i, int j)
class SubClass
{
PROP(MyPOD myPOD)
PROP(int i)
}
class ParentClass
{
ENUM MyEnum {foo=1, bar=3, foobar=6}
PROP(bool started = false)
PROP(MyEnum myEnum=foo)
PROP(QVariant variant)
PROP(Qt::DateFormat date = Qt::ISODate)
PROP(NS::NamespaceEnum nsEnum = NS::Alpha)
SLOT(bool start())
SLOT(bool quit())
SIGNAL(advance())
SIGNAL(enum2(MyEnum myEnum1, MyEnum myEnum2))
SLOT(MyEnum enumSlot(QPoint point, MyEnum myEnum))
SIGNAL(updateDate(Qt::DateFormat date1, Qt::DateFormat date2))
SLOT(Qt::DateFormat dateSlot(Qt::DateFormat date))
CLASS subClass(SubClass)
MODEL tracks(display)
}
|