| 1 | #ifndef IPVLIDATOR_H |
| 2 | #define IPVLIDATOR_H |
| 3 | |
| 4 | #include <QDialog> |
| 5 | |
| 6 | class QLineEdit; |
| 7 | |
| 8 | class IpValidator : public QDialog |
| 9 | { |
| 10 | Q_OBJECT |
| 11 | public: |
| 12 | IpValidator(QWidget * parent); |
| 13 | protected: |
| 14 | bool validateIp(QLineEdit * ipLineEdit, bool allowNull, bool quite); |
| 15 | }; |
| 16 | |
| 17 | #endif // IPVLIDATOR_H |