Revision efe7a06f
Von Christian Ehringfeld vor mehr als 9 Jahren hinzugefügt
| src/entity.h | ||
|---|---|---|
|
void idChanged();
|
||
|
|
||
|
#define EM_MACRO(type) \
|
||
|
virtual void setListProperty(QList<QSharedPointer<Entity>> &entList, const QMetaProperty &property) { \
|
||
|
virtual void setListProperty(QList<QSharedPointer<Entity>> &entList, const QMetaProperty &property) override { \
|
||
|
QList<QSharedPointer<type>> list = *reinterpret_cast<QList<QSharedPointer<type>>*>(&entList); \
|
||
|
QVariant var; \
|
||
|
var.setValue<QList<QSharedPointer<type>>>(list); \
|
||
Auch abrufbar als: Unified diff
added "overriden" to EM_MACRO