Revision fc14f551
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
src/entity.cpp | ||
---|---|---|
r.append("id: ") + this->getId() + "}";
|
||
return r;
|
||
}
|
||
QList<ErrorMsg> Entity::getErrors() const {
|
||
return errors;
|
||
}
|
||
|
||
void Entity::setErrors(const QList<ErrorMsg> &value) {
|
||
errors = value;
|
||
}
|
||
|
||
Entity::~Entity() {
|
||
|
||
}
|
||
|
||
QList<ValidationRule> Entity::validationRules() const {
|
||
return QList<ValidationRule>();
|
||
}
|
||
|
||
QString Entity::getTablename() const {
|
||
return QString(this->metaObject()->className()).toLower();
|
||
}
|
||
... | ... | |
emit idChanged();
|
||
}
|
||
}
|
||
|
||
bool Entity::hasErrors() const {
|
||
return !this->errors.isEmpty();
|
||
}
|
Auch abrufbar als: Unified diff
validator stuff