Revision 90dfeb49
Von Christian Ehringfeld vor mehr als 9 Jahren hinzugefügt
| src/entityinstancefactory.cpp | ||
|---|---|---|
|
QMetaProperty prop = metaprops.value(iterator.key());
|
||
|
if (prop.isWritable()) {
|
||
|
if (prop.isEnumType()) {
|
||
|
prop.write(e, prop.enumerator().key(iterator.value().toInt()));
|
||
|
prop.write(e, prop.enumerator().valueToKey(iterator.value().toInt()));
|
||
|
} else {
|
||
|
prop.write(e, iterator.value());
|
||
|
}
|
||
Auch abrufbar als: Unified diff
enum fix