Fix Minimize to the tray instead of the taskbar
[novacoin.git] / src / qt / qvalidatedlineedit.h
1 #ifndef QVALIDATEDLINEEDIT_H
2 #define QVALIDATEDLINEEDIT_H
3
4 #include <QLineEdit>
5
6 // Line edit that can be marked as "invalid". When marked as invalid,
7 // it will get a red background until it is focused.
8 class QValidatedLineEdit : public QLineEdit
9 {
10     Q_OBJECT
11 public:
12     explicit QValidatedLineEdit(QWidget *parent = 0);
13     void clear();
14
15 protected:
16     void focusInEvent(QFocusEvent *evt);
17
18 private:
19     bool valid;
20
21 public slots:
22     void setValid(bool valid);
23
24 private slots:
25     void markValid();
26 };
27
28 #endif // QVALIDATEDLINEEDIT_H