Revision 3fd96253
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
src/entityinstancefactory.h | ||
---|---|---|
template<typename T>
|
||
static void registerClass() {
|
||
constructors().insert( T::staticMetaObject.className(), &constructorHelper<T> );
|
||
QString lName = "QList<QSharedPointer<";
|
||
lName.append(T::staticMetaObject.className());
|
||
lName.append(">>");
|
||
/**
|
||
* @brief qRegisterMetaType<QList<QSharedPointer<T> > >
|
||
* @todo would be great if we could remove this shit
|
||
*/
|
||
qRegisterMetaType<QList<QSharedPointer<T>>>(lName.toLatin1().constData());
|
||
}
|
||
|
||
static Entity *createObject( const QByteArray &className) {
|
Auch abrufbar als: Unified diff
update, many to many is not fully working, but persisting works