FactDev  0.1
checkqlineedit.h
1 #ifndef CHECKQLINEEDIT_H
2 #define CHECKQLINEEDIT_H
3 
4 #include <QLineEdit>
5 #include <QPushButton>
6 
7 #include "icheckfield.h"
8 
9 namespace Gui {
10 namespace Widgets {
11 namespace CheckFields {
15 class CheckQLineEdit : public QLineEdit, public ICheckField
16 {
17  Q_OBJECT
18 public:
23  explicit CheckQLineEdit(QWidget *parent = 0, QPushButton* btn=0);
24 
30 
36 
41  QPushButton *getBtnValid() const;
46  void setBtnValid(QPushButton *getBtnValid);
47 
52  bool isValid();
53 signals:
54 
55 public slots:
60  void fieldTextChanged(const QString &text);
61 
62 private:
63  QPushButton* _btnValid;
64 
65 
66 };
67 }
68 }
69 }
70 #endif // CHECKQLINEEDIT_H
void fieldTextChanged(const QString &text)
CheckQLineEdit::fieldTextChanged For each new characater inputed or removed, displays an icon to show...
Definition: checkqlineedit.cpp:12
CheckQLineEdit(QWidget *parent=0, QPushButton *btn=0)
CheckQLineEdit::CheckQLineEdit Construct a CheckQLineEdit.
Definition: checkqlineedit.cpp:7
QPushButton * getBtnValid() const
CheckQLineEdit::getBtnValid.
Definition: checkqlineedit.cpp:54
The ICheckField class Interface to check fields validity.
Definition: icheckfield.h:12
bool isValid()
isValid Return true if the current field if valid
Definition: checkqlineedit.cpp:64
void setBtnValid(QPushButton *getBtnValid)
CheckQLineEdit::setBtnValid.
Definition: checkqlineedit.cpp:59
void displayCheckValidFieldIcon()
CheckQLineEdit::displayCheckValidFieldIcon Display a valid icon into the field.
Definition: checkqlineedit.cpp:27
The CheckQLineEdit class LineEdit custom with a check of text inputed.
Definition: checkqlineedit.h:15
void displayCheckNoValidFieldIcon()
CheckQLineEdit::displayCheckNoValidFieldIcon Display a "no valid" icon into the field.
Definition: checkqlineedit.cpp:40