Version: 9.15.0
QtxIntValidator Class Reference

Validator for integer numbers with possibility to fix up the invalid value. More...

#include <QtxValidator.h>

Inheritance diagram for QtxIntValidator:
Inheritance graph

Public Member Functions

 QtxIntValidator (QObject *)
 Constructor. More...
 
 QtxIntValidator (const int, const int, QObject *)
 Constructor. More...
 
virtual ~QtxIntValidator ()
 Destructor. More...
 
virtual void fixup (QString &) const
 Validate the input and fixup it if necessary. More...
 

Detailed Description

Validator for integer numbers with possibility to fix up the invalid value.

Constructor & Destructor Documentation

◆ QtxIntValidator() [1/2]

QtxIntValidator::QtxIntValidator ( QObject parent)

Constructor.

Parameters
parentparent object

◆ QtxIntValidator() [2/2]

QtxIntValidator::QtxIntValidator ( const int  bot,
const int  top,
QObject parent 
)

Constructor.

Parameters
botminimum possible value
topmaximum possible value
parentparent object

◆ ~QtxIntValidator()

QtxIntValidator::~QtxIntValidator ( )
virtual

Destructor.

Member Function Documentation

◆ fixup()

void QtxIntValidator::fixup ( QString &  str) const
virtual

Validate the input and fixup it if necessary.

If the string represents integer value less then minimum value, it becomes equal to the minimum. if the string represents integer value more then mazimum value, it becomes equal to the maximum. If the string is not evaluated as integer it becomes equal to 0.

Parameters
strthe string to be validated

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