aboutsummaryrefslogtreecommitdiff
path: root/src/qt/qvalidatedlineedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/qvalidatedlineedit.h')
-rw-r--r--src/qt/qvalidatedlineedit.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qt/qvalidatedlineedit.h b/src/qt/qvalidatedlineedit.h
index 53ef04e4a0..c2a4817e65 100644
--- a/src/qt/qvalidatedlineedit.h
+++ b/src/qt/qvalidatedlineedit.h
@@ -15,20 +15,25 @@ class QValidatedLineEdit : public QLineEdit
Q_OBJECT
public:
- explicit QValidatedLineEdit(QWidget *parent = 0);
+ explicit QValidatedLineEdit(QWidget *parent);
void clear();
+ void setCheckValidator(const QValidator *v);
protected:
void focusInEvent(QFocusEvent *evt);
+ void focusOutEvent(QFocusEvent *evt);
private:
bool valid;
+ const QValidator *checkValidator;
public slots:
void setValid(bool valid);
+ void setEnabled(bool enabled);
private slots:
void markValid();
+ void checkValidity();
};
#endif // QVALIDATEDLINEEDIT_H