Revision 5757762e
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
src/entityinstancefactory.cpp | ||
---|---|---|
|
||
QSharedPointer<Entity> EntityInstanceFactory::castQVariant(
|
||
QVariant &entity) {
|
||
if(!entity.isNull() && entity.data()) {
|
||
return *reinterpret_cast<QSharedPointer<Entity>*>(entity.data());
|
||
} else {
|
||
return QSharedPointer<Entity>();
|
||
}
|
||
return *reinterpret_cast<QSharedPointer<Entity>*>(entity.data());
|
||
}
|
||
|
||
QStringList EntityInstanceFactory::getRegisteredClasses() {
|
Auch abrufbar als: Unified diff
bug fix