Revision 67f8e889
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
src/entity.h | ||
---|---|---|
property.write(this, var); \
|
||
}
|
||
|
||
//#define EM_PROPERTY(type,attribute,getter,setter)
|
||
// Q_PROPERTY(QSharedPointer<type> attribute READ getter WRITE setter)
|
||
|
||
//#define EM_LIST_PROPERTY(type,attribute,getter,setter)
|
||
// Q_PROPERTY(QList<QSharedPointer<type>> attribute READ getter WRITE setter)
|
||
// EM_LIST_MACRO(type)
|
||
|
||
|
||
|
||
public:
|
||
virtual QString toString() const;
|
tests/models.h | ||
---|---|---|
Q_PROPERTY(QList<QSharedPointer<Group>> maintainedGroups READ
|
||
getMaintainedGroups WRITE setMaintainedGroups)
|
||
EM_LIST_MACRO(Group)
|
||
// EM_LIST_PROPERTY(Group,groups,getGroups,setGroups)
|
||
// EM_LIST_PROPERTY(Group,maintainedGroups,getMaintainedGroups,setMaintainedGroups)
|
||
|
||
|
||
public:
|
||
enum class Gender {MALE, FEMALE, UNKNOWNGENDER};
|
Auch abrufbar als: Unified diff
...