Herunterladen als
root/src/validators/requiredvalidator.cpp @ 49762cb7
e111d9ab | Christian Ehringfeld | #include "requiredvalidator.h"
|
|
using namespace CuteEntityManager;
|
|||
RequiredValidator::RequiredValidator(): Validator() {
|
|||
}
|
|||
ErrorMsg RequiredValidator::validateParam(QVariant value, Param param) const {
|
|||
b7f1ce8e | Christian Ehringfeld | if (value.isNull() || value.toString().isEmpty()) {
|
|
e111d9ab | Christian Ehringfeld | return ErrorMsg(param.getName(), "Value is not set");
|
|
}
|
|||
return ErrorMsg();
|
|||
}
|