Forgotten modifications.

This commit is contained in:
2015-11-10 22:52:04 +01:00
parent 5993193ffb
commit 21ffb16151
3 changed files with 50 additions and 3 deletions
+26
View File
@@ -1,5 +1,31 @@
#ifndef IVALIDATOR_H
#define IVALIDATOR_H
#include <QWidget>
#include <QString>
class IValidator
{
public:
IValidator(QWidget *widget, const QString &errMessage)
{
m_widget = widget;
m_errMessage = errMessage;
}
virtual bool validate() = 0;
QString errMessage()
{
return m_errMessage;
}
protected:
QWidget *m_widget;
private:
QString m_errMessage;
};
#endif // IVALIDATOR_H