Version: 6.3.1
Public Member Functions

QtxIntValidator Class Reference

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

#include <QtxValidator.h>

Inheritance diagram for QtxIntValidator:
Inheritance graph

Public Member Functions

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

Constructor & Destructor Documentation

QtxIntValidator::QtxIntValidator ( QObject parent)
Parameters:
parentparent object
QtxIntValidator::QtxIntValidator ( const int  bot,
const int  top,
QObject parent 
)
Parameters:
botminimum possible value
topmaximum possible value
parentparent object
QtxIntValidator::~QtxIntValidator ( ) [virtual]

Member Function Documentation

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

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
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS