Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 31565d02

Von Christian Ehringfeld vor mehr als 6 Jahren hinzugefügt

  • ID 31565d0226857e7b1db333ee85486d9d8eab370e
  • Vorgänger c24e100e
  • Nachfolger 55f3201d

Revert "Merge branch 'seb' of ssh://synlos.net/entitymanager into dev"

This reverts commit 2c89eb94005a9c61337ede9cb858dfb467d3f251, reversing
changes made to 55dc7c8e7203a1f5aadee49ec9693b47d0008928.

Unterschiede anzeigen:

src/entity.h
#define EM_MACRO(type) \
virtual void setListProperty(const QSharedPointer<Entity> &e,QList<QSharedPointer<Entity>> &entList, const QMetaProperty &property) override { \
QList<QSharedPointer<type>> list = *reinterpret_cast<QList<QSharedPointer<type>>*>(&entList); \
QVariant var; \
var.setValue<QList<QSharedPointer<type>>>(list); \
property.write(e.data(), var); \
} \
virtual void setProperty(const QSharedPointer<Entity> &e,QSharedPointer<Entity> &value, const QMetaProperty &property) override { \
QSharedPointer<type> en = *reinterpret_cast<QSharedPointer<type>*>(&value); \
QVariant var; \
var.setValue<QSharedPointer<type>>(en); \
property.write(e.data(), var); \
property.write(e.data(), QVariant::fromValue(list)); \
}
public:
......
void setErrors(const QList<ErrorMsg> &value);
virtual void setListProperty(const QSharedPointer<Entity> &e, QList<QSharedPointer<Entity>> &entList,
const QMetaProperty &property) = 0;
virtual void setProperty(const QSharedPointer<Entity> &e, QSharedPointer<Entity> &value, const QMetaProperty &property) = 0;
virtual void setProperty(const QSharedPointer<Entity> &e, QSharedPointer<Entity> value, const QMetaProperty &property);
QString internalRelationName(const QString &name);
protected:
explicit Entity (QObject *parent = 0);

Auch abrufbar als: Unified diff