Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QDS_DoubleValidator Class Reference

A validator for floating point values. More...

#include <QDS_Validator.h>

Inheritance diagram for QDS_DoubleValidator:
Inheritance graph

Public Member Functions

 QDS_DoubleValidator (QObject *p=0)
 Constructor. More...
 
 QDS_DoubleValidator (const QString &f, QObject *p=0)
 Constructor. More...
 
virtual ~QDS_DoubleValidator ()
 Destructor. More...
 
virtual State validate (QString &, int &) const
 Validate the entered string input. More...
 

Private Attributes

QString myFilter
 string filter More...
 

Detailed Description

This class provides validation of the strings entered by the user for datum with 'Float' value type according to datum properties: minimum value, maximum value, precision, filter.

Inherits QDoubleValidator.

Constructor & Destructor Documentation

QDS_DoubleValidator::QDS_DoubleValidator ( QObject p = 0)

Create empty validator object.

Parameters
pparent object
QDS_DoubleValidator::QDS_DoubleValidator ( const QString &  f,
QObject p = 0 
)

Create validator object with filter string f.

Parameters
ffilter string
pparent object
QDS_DoubleValidator::~QDS_DoubleValidator ( )
virtual

Member Function Documentation

QValidator::State QDS_DoubleValidator::validate ( QString &  input,
int &  pos 
) const
virtual

Reimplemented from QDoubleValidator.

Perform standard check by QDoubleValidator::validate(). If returned state is not QValidator::Invalid and filter is specified then perform validation with filter by QRegExpValidator.

Returns QValidator::Invalid if input is invalid according to this validator's rules, QValidator::Intermediate if it is likely that a little more editing will make the input acceptable and QValidator::Acceptable if the input is valid.

Parameters
inputstring being validated
poscursor position
Returns
validation state (QValidator::State)

References myFilter.

Member Data Documentation

QString QDS_DoubleValidator::myFilter
private

The documentation for this class was generated from the following files: