Revision 59bf3900
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
src/entityinstancefactory.cpp | ||
---|---|---|
if (!s.contains("*")) {
|
||
s.append("*");
|
||
}
|
||
int type = QMetaType::type(
|
||
s.toUtf8().constData());
|
||
return EntityInstanceFactory::createInstance(type);
|
||
return EntityInstanceFactory::createInstance(QMetaType::type(
|
||
s.toUtf8().constData()));
|
||
}
|
||
|
||
Entity *EntityInstanceFactory::createInstance(const QString &className) {
|
||
... | ... | |
}
|
||
return super;
|
||
}
|
||
|
||
Entity *EntityInstanceFactory::createInstance(const QMetaObject *object) {
|
||
return qobject_cast<Entity *>(object->newInstance());
|
||
}
|
Auch abrufbar als: Unified diff
bugfix