diff options
Diffstat (limited to 'tqtinterface/qt4/src/kernel/tqkeysequence.cpp')
-rw-r--r-- | tqtinterface/qt4/src/kernel/tqkeysequence.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqkeysequence.cpp b/tqtinterface/qt4/src/kernel/tqkeysequence.cpp index f34f697..7b06b22 100644 --- a/tqtinterface/qt4/src/kernel/tqkeysequence.cpp +++ b/tqtinterface/qt4/src/kernel/tqkeysequence.cpp @@ -217,7 +217,7 @@ TQKeySequence::TQKeySequence() with commas, e.g. "Alt+X,Ctrl+S,Q". This contructor is typically used with \link TQObject::tr() tr - \endlink(), so that accelerator keys can be tqreplaced in + \endlink(), so that accelerator keys can be replaced in translations: \code @@ -359,7 +359,7 @@ int TQKeySequence::assign( TQString keyseq ) // We MUST use something to seperate each sequence, and space // does not cut it, since some of the key names have space // in them.. (Let's hope no one translate with a comma in it:) - p = keyseq.tqfind( ',' ); + p = keyseq.find( ',' ); if ( -1 != p ) { if ( ',' == keyseq[p+1] ) // e.g. 'Ctrl+,, Shift+,,' p++; @@ -414,7 +414,7 @@ int TQKeySequence::decodeString( const TQString& str ) modifs << ModifKeyName( META, "meta+" ) << ModifKeyName( ALT, TQAccel::tqtr("Meta").lower().append('+') ); TQString sl = accel.lower(); for( TQValueList<ModifKeyName>::iterator it = modifs.begin(); it != modifs.end(); ++it ) { - if ( sl.tqcontains( (*it).name ) ) { + if ( sl.contains( (*it).name ) ) { ret |= (*it).qt_key; #ifndef TQT_NO_REGEXP accel.remove( TQRegExp(TQRegExp::escape((*it).name), FALSE) ); @@ -425,7 +425,7 @@ int TQKeySequence::decodeString( const TQString& str ) } } - int p = accel.tqfindRev( '+', str.length() - 2 ); // -2 so that Ctrl++ works + int p = accel.findRev( '+', str.length() - 2 ); // -2 so that Ctrl++ works if( p > 0 ) accel = accel.mid( p + 1 ); @@ -523,7 +523,7 @@ TQString TQKeySequence::encodeString( int key ) } ++i; } - // If we can't tqfind the actual translatable keyname, + // If we can't find the actual translatable keyname, // fall back on the tqunicode representation of it... // Or else characters like Key_aring may not get displayed // ( Really depends on you locale ) |