Revision dc6b13b4
Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt
src/entity.cpp | ||
---|---|---|
return "id";
|
||
}
|
||
|
||
QHash<QString, QMetaProperty> Entity::getMetaProperties() {
|
||
QHash<QString, QMetaProperty> h = QHash<QString, QMetaProperty>();
|
||
for (int var = 0; var < this->metaObject()->propertyCount(); ++var) {
|
||
QMetaProperty m = this->metaObject()->property(var);
|
||
if (m.name() != QString("objectName") && m.isValid()) {
|
||
h.insert(m.name(), m);
|
||
}
|
||
}
|
||
return h;
|
||
}
|
||
|
||
qint64 Entity::getId() const {
|
||
return id;
|
||
}
|
Auch abrufbar als: Unified diff
not tested