diff options
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqlineedit.cpp')
-rw-r--r-- | tqtinterface/qt4/src/widgets/tqlineedit.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqlineedit.cpp b/tqtinterface/qt4/src/widgets/tqlineedit.cpp index cca37a7..645c646 100644 --- a/tqtinterface/qt4/src/widgets/tqlineedit.cpp +++ b/tqtinterface/qt4/src/widgets/tqlineedit.cpp @@ -122,7 +122,7 @@ struct TQLineEditPrivate : public TQt const TQValidator* validator; struct MaskInputData { enum Casemode { NoCaseMode, Upper, Lower }; - TQChar maskChar; // either the separator char or the inputtqmask + TQChar maskChar; // either the separator char or the inputmask bool separator; Casemode caseMode; }; @@ -246,7 +246,7 @@ struct TQLineEditPrivate : public TQt // masking void parseInputMask( const TQString &maskFields ); - bool isValidInput( TQChar key, TQChar tqmask ) const; + bool isValidInput( TQChar key, TQChar mask ) const; TQString maskString( uint pos, const TQString &str, bool clear = FALSE ) const; TQString clearString( uint pos, uint len ) const; TQString stripString( const TQString &str ) const; @@ -390,13 +390,13 @@ struct TQLineEditPrivate : public TQt The maximum text length is set to 32767 characters. - The \a tqparent and \a name arguments are sent to the TQWidget constructor. + The \a parent and \a name arguments are sent to the TQWidget constructor. \sa setText(), setMaxLength() */ -TQLineEdit::TQLineEdit( TQWidget* tqparent, const char* name ) - : TQFrame( tqparent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) +TQLineEdit::TQLineEdit( TQWidget* parent, const char* name ) + : TQFrame( parent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) { d->init( TQString::null ); } @@ -407,14 +407,14 @@ TQLineEdit::TQLineEdit( TQWidget* tqparent, const char* name ) The cursor position is set to the end of the line and the maximum text length to 32767 characters. - The \a tqparent and \a name arguments are sent to the TQWidget + The \a parent and \a name arguments are sent to the TQWidget constructor. \sa text(), setMaxLength() */ -TQLineEdit::TQLineEdit( const TQString& contents, TQWidget* tqparent, const char* name ) - : TQFrame( tqparent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) +TQLineEdit::TQLineEdit( const TQString& contents, TQWidget* parent, const char* name ) + : TQFrame( parent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) { d->init( contents ); } @@ -424,16 +424,16 @@ TQLineEdit::TQLineEdit( const TQString& contents, TQWidget* tqparent, const char contents. The cursor position is set to the end of the line and the maximum - text length is set to the length of the tqmask (the number of tqmask + text length is set to the length of the mask (the number of mask characters and separators). - The \a tqparent and \a name arguments are sent to the TQWidget + The \a parent and \a name arguments are sent to the TQWidget constructor. \sa setMask() text() */ -TQLineEdit::TQLineEdit( const TQString& contents, const TQString &inputMask, TQWidget* tqparent, const char* name ) - : TQFrame( tqparent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) +TQLineEdit::TQLineEdit( const TQString& contents, const TQString &inputMask, TQWidget* parent, const char* name ) + : TQFrame( parent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) { d->parseInputMask( inputMask ); if ( d->maskData ) { @@ -519,7 +519,7 @@ TQString TQLineEdit::displayText() const cursor position is set to 0 and the first part of the string is shown. - If the line edit has an input tqmask, the tqmask defines the maximum + If the line edit has an input mask, the mask defines the maximum string length. \sa inputMask @@ -1109,18 +1109,18 @@ bool TQLineEdit::hasAcceptableInput() const /*! \property TQLineEdit::inputMask - \brief The validation input tqmask + \brief The validation input mask - If no tqmask is set, inputMask() returns TQString::null. + If no mask is set, inputMask() returns TQString::null. - Sets the TQLineEdit's validation tqmask. Validators can be used + Sets the TQLineEdit's validation mask. Validators can be used instead of, or in conjunction with masks; see setValidator(). - Unset the tqmask and return to normal TQLineEdit operation by passing + Unset the mask and return to normal TQLineEdit operation by passing an empty string ("") or just calling setInputMask() with no arguments. - The tqmask format understands these tqmask characters: + The mask format understands these mask characters: \table \header \i Character \i Meaning \row \i \c A \i ASCII alphabetic character required. A-Z, a-z. @@ -1142,7 +1142,7 @@ bool TQLineEdit::hasAcceptableInput() const separators. \endtable - The tqmask consists of a string of tqmask characters and separators, + The mask consists of a string of mask characters and separators, optionally followed by a semi-colon and the character used for blanks: the blank characters are always removed from the text after editing. The default blank character is space. @@ -2740,9 +2740,9 @@ void TQLineEditPrivate::parseInputMask( const TQString &maskFields ) /* checks if the key is valid compared to the inputMask */ -bool TQLineEditPrivate::isValidInput( TQChar key, TQChar tqmask ) const +bool TQLineEditPrivate::isValidInput( TQChar key, TQChar mask ) const { - switch ( tqmask ) { + switch ( mask ) { case 'A': if ( key.isLetter() && key != blank ) return TRUE; @@ -2794,7 +2794,7 @@ bool TQLineEditPrivate::isValidInput( TQChar key, TQChar tqmask ) const } /* - Applies the inputMask on \a str starting from position \a pos in the tqmask. \a clear + Applies the inputMask on \a str starting from position \a pos in the mask. \a clear specifies from where characters should be gotten when a separator is met in \a str - TRUE means that blanks will be used, FALSE that previous input is used. Calling this when no inputMask is set is undefined. |