Revision 6be60ddf
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
src/entityhelper.cpp | ||
---|---|---|
superObject = nullptr;
|
||
}
|
||
return wholeProperties;
|
||
|
||
|
||
}
|
||
|
||
const QHash<Relation, QMetaProperty> EntityHelper::getRelationProperties(
|
||
... | ... | |
for (int i = 0; i < metaObject->propertyCount(); ++i) {
|
||
auto property = metaObject->property(i);
|
||
if(property.isValid() && property.name() != entity->getPrimaryKey()) {
|
||
property.write(newInstance,property.read(entity));
|
||
property.write(newInstance, property.read(entity));
|
||
}
|
||
}
|
||
}
|
||
... | ... | |
}
|
||
|
||
void EntityHelper::setListProperty(const QSharedPointer<Entity> &entity,
|
||
QList<QSharedPointer<Entity> > &list,
|
||
QList<QSharedPointer<Entity>> &list,
|
||
const QMetaProperty &property) {
|
||
QVariant var;
|
||
var.setValue<QList<QSharedPointer<Entity>>>(list);
|
Auch abrufbar als: Unified diff
bugfixxes