Fabcoin Core  0.16.2
P2P Digital Currency
qvalidatedtextedit.h
Go to the documentation of this file.
1 #ifndef QVALIDATEDTEXTEDIT_H
2 #define QVALIDATEDTEXTEDIT_H
3 
4 #include <QTextEdit>
5 
6 class QValidator;
7 class QValidatedTextEdit : public QTextEdit
8 {
9  Q_OBJECT
10 
11 public:
12  explicit QValidatedTextEdit(QWidget *parent);
13  void clear();
14  void setCheckValidator(const QValidator *v);
15  bool isValid();
16 
17  bool getEmptyIsValid() const;
18  void setEmptyIsValid(bool value);
19 
20  bool getIsValidManually() const;
21  void setIsValidManually(bool value);
22 
23 protected:
24  void focusInEvent(QFocusEvent *event);
25  void focusOutEvent(QFocusEvent *event);
26 
27 private:
28  bool valid;
29  const QValidator *checkValidator;
32 
33 public Q_SLOTS:
34  void setValid(bool valid);
35  void setEnabled(bool enabled);
36  void checkValidity();
37 
38 Q_SIGNALS:
39 
40 private Q_SLOTS:
41  void markValid();
42 };
43 
44 #endif // QVALIDATEDTEXTEDIT_H
void setIsValidManually(bool value)
void setValid(bool valid)
const QValidator * checkValidator
void setEnabled(bool enabled)
void focusInEvent(QFocusEvent *event)
QValidatedTextEdit(QWidget *parent)
void focusOutEvent(QFocusEvent *event)
void setEmptyIsValid(bool value)
void setCheckValidator(const QValidator *v)
bool getIsValidManually() const
bool getEmptyIsValid() const