20 #ifndef QGSDOUBLEVALIDATOR_H
21 #define QGSDOUBLEVALIDATOR_H
24 #include <QRegExpValidator>
55 QgsDoubleValidator(
const QRegularExpression &expression,
double bottom,
double top, QObject *parent );
75 QValidator::State validate( QString &input,
int & )
const override SIP_SKIP;
81 QValidator::State validate( QString &input )
const;
88 static double toDouble(
const QString &input,
bool *ok )
SIP_SKIP;
95 static double toDouble(
const QString &input );
109 void setTop(
double top ) { mMaximum = top; }
126 double bottom()
const {
return mMinimum; }
132 double top()
const {
return mMaximum; }
149 #endif // QGSDOUBLEVALIDATOR_H