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
|
#include <QtCore>
class SimpleClock
{
PROP(int hour=6);
PROP(int minute=30);
SIGNAL(timeUpdated(int hour, int minute, int second=0, int millisecond=0));
};
class TypeWithModel
{
MODEL tracks(display);
};
class TypeWithSubObject
{
CLASS clock(SimpleClock);
};
class ComplexType
{
PROP(int before = 0)
MODEL tracks(display)
CLASS clock(SimpleClock)
PROP(int after = 42)
}
class TypeWithReply
{
SLOT(QString uppercase(const QString &input))
SLOT(QMap<QString, QString> complexReturnType())
SLOT(int slowFunction())
};
|