FactDev  0.1
checkpostalcode.h
1 #ifndef CHECKPOSTALCODE_H
2 #define CHECKPOSTALCODE_H
3 
4 #include "checkuntilfield.h"
5 
6 namespace Gui {
7 namespace Widgets {
8 namespace CheckFields {
13 {
14 public:
19  CheckPostalCode (QWidget* w = 0, QPushButton* btn = 0);
20 
27  bool check(QString text);
28 
34  QString getCountry() const;
40  void setCountry(const QString &country);
41 
42 private :
43  QString _country;
44 };
45 }
46 }
47 }
48 #endif // CHECKPOSTALCODE_H
The CheckPostalCode class Line Edit of postal code with a check icon.
Definition: checkpostalcode.h:12
bool check(QString text)
CheckPostalCode::check Check if the field is valid. To be valid, a name should be composed of a chara...
Definition: checkpostalcode.cpp:12
The CheckUntilField class.
Definition: checkuntilfield.h:12
CheckPostalCode(QWidget *w=0, QPushButton *btn=0)
CheckPostalCode::CheckPostalCode Construct a CheckPostalCode.
Definition: checkpostalcode.cpp:8
QString getCountry() const
CheckPostalCode::getCountry Return the country linked to current field.
Definition: checkpostalcode.cpp:33
void setCountry(const QString &country)
CheckPostalCode::setCountry Modify the country linked to field.
Definition: checkpostalcode.cpp:38