20 #ifndef QGSDOUBLEVALIDATOR_H 
   21 #define QGSDOUBLEVALIDATOR_H 
   24 #include <QRegularExpressionValidator> 
   29 class QRegularExpression;
 
   59     QgsDoubleValidator( 
const QRegularExpression &expression, 
double bottom, 
double top, QObject *parent );
 
   94     void setMaxDecimals( 
int maxDecimals );
 
   97     QValidator::State validate( QString &input, 
int & ) 
const override SIP_SKIP;
 
  103     QValidator::State validate( QString &input ) 
const;
 
  110     static double toDouble( 
const QString &input, 
bool *ok ) 
SIP_SKIP;
 
  117     static double toDouble( 
const QString &input );
 
  131     void setTop( 
double top ) { mMaximum = top; }
 
  148     double bottom()
 const { 
return mMinimum; }
 
  154     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.