From eaa7ee2e0bbca40ba3173c4304f81957e8964291 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 9 Aug 2011 22:25:47 -0500 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains --- tqtinterface/qt4/src/widgets/tqvalidator.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tqtinterface/qt4/src/widgets/tqvalidator.cpp') 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. -- cgit v1.2.1