add sendmany support
[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
14 protected:
15     void focusInEvent(QFocusEvent *evt);
16
17 private:
18     bool valid;
19
20 public slots:
21     void setValid(bool valid);
22
23 private slots:
24     void markValid();
25 };
26
27 #endif // QVALIDATEDLINEEDIT_H