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; }
 
  171 #endif // QGSDOUBLEVALIDATOR_H