Revision cbfd2b95
Von Christian Ehringfeld vor mehr als 6 Jahren hinzugefügt
src/entityhelper.cpp | ||
---|---|---|
}
|
||
}
|
||
|
||
void EntityHelper::setFoundProperty(const QSharedPointer<Entity> &entity,
|
||
QSharedPointer<Entity> value,
|
||
const QMetaProperty &property) {
|
||
if (value && value->getProperty(value->getPrimaryKey()).toLongLong()
|
||
> -1) {
|
||
auto i = EntityInstanceFactory::createInstance(EntityInstanceFactory::extractEntityType(property.typeName()));
|
||
if(i) {
|
||
i->setFoundProperty(entity, value, property);
|
||
delete i;
|
||
}
|
||
}
|
||
}
|
||
|
||
void EntityHelper::setListProperty(const QSharedPointer<Entity> &entity,
|
||
QList<QSharedPointer<Entity>> &value, const QMetaProperty &property) {
|
||
auto i = EntityInstanceFactory::createInstance(EntityInstanceFactory::extractEntityType(property.typeName()));
|
Auch abrufbar als: Unified diff
...