Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (351 Bytes) Statistiken
| Zweig: | Revision:
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();
}