Revision a1389432
Von Christian Ehringfeld vor mehr als 9 Jahren hinzugefügt
src/entityinstancefactory.cpp | ||
---|---|---|
return r;
|
||
}
|
||
|
||
Entity *EntityInstanceFactory::newSuperClassInstance(Entity *e) {
|
||
Entity *EntityInstanceFactory::newSuperClassInstance(const Entity *e) {
|
||
Entity *super = 0;
|
||
if (e) {
|
||
auto metaObject = e->metaObject()->superClass();
|
src/entityinstancefactory.h | ||
---|---|---|
QHash<QString, QMetaProperty> metaprops);
|
||
static Entity *setAttributes(Entity *e, const QHash<QString, QVariant> &attributes);
|
||
static const QString extractEntityType(const QString &s);
|
||
static Entity *newSuperClassInstance(Entity *e);
|
||
static Entity *newSuperClassInstance(const Entity *e);
|
||
|
||
template<typename T>
|
||
static Entity *createInstance() {
|
Auch abrufbar als: Unified diff
compiles