VAPOR3 3.9.4
QIntValidatorWithFixup.h
Go to the documentation of this file.
1#ifndef QINTVALIDATORWITHFIXUP_H
2#define QINTVALIDATORWITHFIXUP_H
3
4//
5// This is a derived QIntValidator that implements the fixup function.
6//
7
8#include <QIntValidator>
9
10class QIntValidatorWithFixup : public QIntValidator {
11public:
12 explicit QIntValidatorWithFixup(QObject *parent = 0) : QIntValidator(parent = 0) {}
13 explicit QIntValidatorWithFixup(int bottom, int top, QObject *parent = 0) : QIntValidator(bottom, top, parent = 0) {}
14
15 //
16 // overload fixup() from QIntValidator
17 //
18 virtual void fixup(QString &input) const override;
19};
20
21#endif
virtual void fixup(QString &input) const override
QIntValidatorWithFixup(QObject *parent=0)
QIntValidatorWithFixup(int bottom, int top, QObject *parent=0)