Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (351 Bytes) Statistiken
| Zweig: | Revision:
#include "requiredvalidator.h"
using namespace CuteEntityManager;
RequiredValidator::RequiredValidator(): Validator() {
}

ErrorMsg RequiredValidator::validateParam(QVariant value, Param param) const {
if (value.isNull() || value.toString().isEmpty()) {
return ErrorMsg(param.getName(), "Value is not set");
}
return ErrorMsg();
}
(25-25/36)