File: subclass.rep

package info (click to toggle)
qtremoteobjects-everywhere-src 5.15.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,196 kB
  • sloc: cpp: 23,858; ansic: 39; sh: 35; makefile: 24
file content (39 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (2)
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
38
39
#include <QPoint>
#include "../namespace.h"

USE_ENUM(Qt::DateFormat)
USE_ENUM(NS::NamespaceEnum)
USE_ENUM(NS2::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)
    PROP(NS2::NamespaceEnum ns2Enum = NS2::NamespaceEnum::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)
}