Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a205e8a9

Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt

  • ID a205e8a92aef59aec93bb2ee99321e399dfe1e8d
  • Vorgänger bb5e9339
  • Nachfolger d84c91e7

...

Unterschiede anzeigen:

src/entityinstancefactory.h
static Entity *createInstance(const QString &className);
static Entity *createInstance(int metaTypeId);
static Entity *createInstance(const char *className, const QHash<QString, QVariant> &attributes);
static Entity *setAttributes(Entity *e, const QHash<QString, QVariant> &attributes, QHash<QString, QMetaProperty> metaprops);
static Entity *setAttributes(Entity *e, const QHash<QString, QVariant> &attributes,
QHash<QString, QMetaProperty> metaprops);
static Entity *setAttributes(Entity *e, const QHash<QString, QVariant> &attributes);
template<typename T>
static Entity *createInstance() {
return EntityInstanceFactory::createInstance(qMetaTypeId<T>());
}
protected:
EntityInstanceFactory();
};

Auch abrufbar als: Unified diff