Revision 2ce163c3
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
src/entityinstancefactory.cpp | ||
---|---|---|
while (iterator != attributes.constEnd()) {
|
||
if (metaprops.contains(iterator.key())) {
|
||
QMetaProperty prop = metaprops.value(iterator.key());
|
||
if (!(prop.isWritable() && prop.write(e, iterator.value()))) {
|
||
if(prop.isWritable()) {
|
||
if(prop.isEnumType()) {
|
||
prop.write(e,prop.enumerator().key(iterator.value().toInt()));
|
||
} else {
|
||
prop.write(e, iterator.value());
|
||
}
|
||
} else {
|
||
qDebug() << prop.name() << "on Entity" << e->getClassname() << "not writeable!";
|
||
}
|
||
}
|
Auch abrufbar als: Unified diff
many_many selection works