Update CMakeLists.txt - play with openssl
[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" to show input validation feedback. When marked as invalid,
7    it will get a red background until it is focused.
8  */
9 class QValidatedLineEdit : public QLineEdit
10 {
11     Q_OBJECT
12 public:
13     explicit QValidatedLineEdit(QWidget *parent = 0);
14     void clear();
15
16 protected:
17     void focusInEvent(QFocusEvent *evt);
18
19 private:
20     bool valid;
21
22 public slots:
23     void setValid(bool valid);
24
25 private slots:
26     void markValid();
27 };
28
29 #endif // QVALIDATEDLINEEDIT_H