summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/widgets/tqvalidator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqvalidator.cpp')
-rw-r--r--tqtinterface/qt4/src/widgets/tqvalidator.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqvalidator.cpp b/tqtinterface/qt4/src/widgets/tqvalidator.cpp
index e238ab0..423e837 100644
--- a/tqtinterface/qt4/src/widgets/tqvalidator.cpp
+++ b/tqtinterface/qt4/src/widgets/tqvalidator.cpp
@@ -184,7 +184,7 @@ void TQValidator::fixup( TQString & ) const
/*!
\class TQIntValidator
\brief The TQIntValidator class provides a validator which ensures
- that a string tqcontains a valid integer within a specified range.
+ that a string contains a valid integer within a specified range.
\ingroup misc
@@ -408,10 +408,10 @@ TQDoubleValidator::~TQDoubleValidator()
/*!
- Returns \c Acceptable if the string \a input tqcontains a double
+ Returns \c Acceptable if the string \a input contains a double
that is within the valid range and is in the correct format.
- Returns \c Intermediate if \a input tqcontains a double that is
+ Returns \c Intermediate if \a input contains a double that is
outside the range or is in the wrong format, e.g. with too many
digits after the decimal point or is empty.
@@ -431,7 +431,7 @@ TQValidator::State TQDoubleValidator::validate( TQString & input, int & ) const
return Intermediate;
bool ok = TRUE;
double entered = input.toDouble( &ok );
- int nume = input.tqcontains( 'e', FALSE );
+ int nume = input.contains( 'e', FALSE );
if ( !ok ) {
// explicit exponent regexp
TQRegExp expexpexp( TQString::tqfromLatin1("[Ee][+-]?\\d*$") );
@@ -448,7 +448,7 @@ TQValidator::State TQDoubleValidator::validate( TQString & input, int & ) const
}
}
- int i = input.tqfind( '.' );
+ int i = input.find( '.' );
if ( i >= 0 && nume == 0 ) {
// has decimal point (but no E), now count digits after that
i++;
@@ -524,7 +524,7 @@ void TQDoubleValidator::setDecimals( int decimals )
\ingroup misc
- TQRegExpValidator tqcontains a regular expression, "regexp", used to
+ TQRegExpValidator contains a regular expression, "regexp", used to
determine whether an input string is \c Acceptable, \c
Intermediate or \c Invalid.