20 #ifndef QGSDOUBLEVALIDATOR_H
21 #define QGSDOUBLEVALIDATOR_H
24 #include <QRegExpValidator>
29 class QRegularExpression;
59 QgsDoubleValidator(
const QRegularExpression &expression,
double bottom,
double top, QObject *parent );
89 QValidator::State validate( QString &input,
int & )
const override SIP_SKIP;
95 QValidator::State validate( QString &input )
const;
102 static double toDouble(
const QString &input,
bool *ok )
SIP_SKIP;
109 static double toDouble(
const QString &input );
123 void setTop(
double top ) { mMaximum = top; }
140 double bottom()
const {
return mMinimum; }
146 double top()
const {
return mMaximum; }
QgsDoubleValidator is a QLineEdit Validator that combines QDoubleValidator and QRegularExpressionVali...
double top() const
Returns top range limit.
virtual void setRange(double bottom, double top)
Set bottom and top range limits.
void setTop(double top)
Set top range limit.
double bottom() const
Returns top range limit.
void setBottom(double bottom)
Set top range limit.