Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
qvalidatedlineedit.h
Go to the documentation of this file.
1 #ifndef QVALIDATEDLINEEDIT_H
2 #define QVALIDATEDLINEEDIT_H
3 
4 #include <QLineEdit>
5 
9 class QValidatedLineEdit : public QLineEdit
10 {
11  Q_OBJECT
12 
13 public:
14  explicit QValidatedLineEdit(QWidget *parent = 0);
15  void clear();
16 
17 protected:
18  void focusInEvent(QFocusEvent *evt);
19 
20 private:
21  bool valid;
22 
23 public slots:
24  void setValid(bool valid);
25 
26 private slots:
27  void markValid();
28 };
29 
30 #endif // QVALIDATEDLINEEDIT_H
Line edit that can be marked as "invalid" to show input validation feedback.
void focusInEvent(QFocusEvent *evt)
QValidatedLineEdit(QWidget *parent=0)
void setValid(bool valid)