diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kugar/lib/inputmask.cpp | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kugar/lib/inputmask.cpp')
-rw-r--r-- | kugar/lib/inputmask.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kugar/lib/inputmask.cpp b/kugar/lib/inputmask.cpp index 6fb49220b..923323cb8 100644 --- a/kugar/lib/inputmask.cpp +++ b/kugar/lib/inputmask.cpp @@ -17,12 +17,12 @@ namespace Kugar { -InputMask::InputMask( TQObject *tqparent, const char *name ) - : TQObject( tqparent, name ), +InputMask::InputMask( TQObject *parent, const char *name ) + : TQObject( parent, name ), m_text( TQString() ), m_maxLength( 32767 ), m_blank( ' ' ), - m_tqmask( TQString() ), + m_mask( TQString() ), m_maskData( 0L ) {} @@ -31,14 +31,14 @@ InputMask::~InputMask() delete [] m_maskData; } -TQString InputMask::tqmask() const +TQString InputMask::mask() const { - return ( m_maskData ? m_tqmask + ';' + m_blank : TQString() ); + return ( m_maskData ? m_mask + ';' + m_blank : TQString() ); } -void InputMask::setMask( const TQString &tqmask ) +void InputMask::setMask( const TQString &mask ) { - parseInputMask( tqmask ); + parseInputMask( mask ); } TQString InputMask::formatText( const TQString &txt ) @@ -59,7 +59,7 @@ void InputMask::parseInputMask( const TQString &maskFields ) return ; } - m_tqmask = maskFields.section( ';', 0, 0 ); + m_mask = maskFields.section( ';', 0, 0 ); m_blank = maskFields.section( ';', 1, 1 ).at( 0 ); if ( m_blank.isNull() ) m_blank = ' '; @@ -68,10 +68,10 @@ void InputMask::parseInputMask( const TQString &maskFields ) m_maxLength = 0; TQChar c = 0; uint i; - for ( i = 0; i < m_tqmask.length(); i++ ) + for ( i = 0; i < m_mask.length(); i++ ) { - c = m_tqmask.at( i ); - if ( i > 0 && m_tqmask.at( i - 1 ) == '\\' ) + c = m_mask.at( i ); + if ( i > 0 && m_mask.at( i - 1 ) == '\\' ) { m_maxLength++; continue; @@ -91,9 +91,9 @@ void InputMask::parseInputMask( const TQString &maskFields ) bool s; bool escape = FALSE; int index = 0; - for ( i = 0; i < m_tqmask.length(); i++ ) + for ( i = 0; i < m_mask.length(); i++ ) { - c = m_tqmask.at( i ); + c = m_mask.at( i ); if ( escape ) { s = TRUE; @@ -153,9 +153,9 @@ void InputMask::parseInputMask( const TQString &maskFields ) } } -bool InputMask::isValidInput( TQChar key, TQChar tqmask ) const +bool InputMask::isValidInput( TQChar key, TQChar mask ) const { - switch ( tqmask ) + switch ( mask ) { case 'A': if ( key.isLetter() && key != m_blank ) |