2015-11-10 22:39:58 +01:00
|
|
|
#ifndef EMPTYSTRINGVALIDATOR_H
|
|
|
|
|
#define EMPTYSTRINGVALIDATOR_H
|
|
|
|
|
|
2015-11-10 22:52:04 +01:00
|
|
|
#include <QString>
|
|
|
|
|
#include "ivalidator.h"
|
2015-11-10 22:39:58 +01:00
|
|
|
|
|
|
|
|
class EmptyStringValidator : public IValidator
|
|
|
|
|
{
|
|
|
|
|
public:
|
2015-11-10 22:52:04 +01:00
|
|
|
EmptyStringValidator(QWidget *widget, const QString &errMessage);
|
|
|
|
|
|
|
|
|
|
// IValidator interface
|
|
|
|
|
public:
|
|
|
|
|
bool validate();
|
2015-11-10 22:39:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // EMPTYSTRINGVALIDATOR_H
|