Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qvalidatedlineedit.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef QVALIDATEDLINEEDIT_H
6 #define QVALIDATEDLINEEDIT_H
7 
8 #include <QLineEdit>
9 
14 {
15  Q_OBJECT
16 
17 public:
18  explicit QValidatedLineEdit(QWidget *parent);
19  void clear();
20  void setCheckValidator(const QValidator *v);
21 
22 protected:
23  void focusInEvent(QFocusEvent *evt);
24  void focusOutEvent(QFocusEvent *evt);
25 
26 private:
27  bool valid;
29 
30 public slots:
31  void setValid(bool valid);
32  void setEnabled(bool enabled);
33 
34 private slots:
35  void markValid();
36  void checkValidity();
37 };
38 
39 #endif // QVALIDATEDLINEEDIT_H
Line edit that can be marked as "invalid" to show input validation feedback.
void focusInEvent(QFocusEvent *evt)
QValidatedLineEdit(QWidget *parent)
const QValidator * checkValidator
void focusOutEvent(QFocusEvent *evt)
void setCheckValidator(const QValidator *v)
void setEnabled(bool enabled)
void setValid(bool valid)