Revision efe7a06f
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
EntityManager.pro | ||
---|---|---|
|
||
CONFIG += ordered
|
||
CONFIG += c++14
|
||
|
||
tests.depends = src
|
||
samples.depends = tests
|
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