Revision c24e100e
Von Christian Ehringfeld vor mehr als 7 Jahren hinzugefügt
src/entityinstancefactory.cpp | ||
---|---|---|
return EntityInstanceFactory::createInstance(object->className());
|
||
}
|
||
|
||
QList<QSharedPointer<Entity>> EntityInstanceFactory::castQVariantList(
|
||
const QList<QSharedPointer<Entity>> EntityInstanceFactory::castQVariantList(
|
||
QVariant &list) {
|
||
if(!list.isNull() && list.isValid()) {
|
||
return *reinterpret_cast<QList<QSharedPointer<Entity>>*>(list.data());
|
src/entityinstancefactory.h | ||
---|---|---|
static const QString extractEntityType(const QString &s);
|
||
static Entity *newSuperClassInstance(const Entity *e);
|
||
static Entity *createInstance(const QMetaObject *object);
|
||
static QList<QSharedPointer<Entity>> castQVariantList(QVariant &list);
|
||
static QSharedPointer<Entity> castQVariant(QVariant &entity);
|
||
static const QList<QSharedPointer<Entity>> castQVariantList(QVariant &list);
|
||
static const QSharedPointer<Entity> castQVariant(QVariant &entity);
|
||
static QStringList getRegisteredClasses();
|
||
|
||
template<typename T>
|
Auch abrufbar als: Unified diff
imp