diff options
Diffstat (limited to 'krec/krecfile.cpp')
-rw-r--r-- | krec/krecfile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/krec/krecfile.cpp b/krec/krecfile.cpp index 9004b211..29d4640b 100644 --- a/krec/krecfile.cpp +++ b/krec/krecfile.cpp @@ -76,7 +76,7 @@ KRecFile::KRecFile( const TQString &filename, TQObject* p, const char* n ) KTar *tar = new KTar( _filename, "application/x-gzip" ); tar->open( IO_ReadOnly ); - int i=0; while ( _filename.tqfind( '/', i ) != -1 ) i++; // Find last '/' + int i=0; while ( _filename.find( '/', i ) != -1 ) i++; // Find last '/' TQString basename = _filename.right( _filename.length()-i ); basename = basename.left( basename.length()-5 ); @@ -155,7 +155,7 @@ void KRecFile::save( const TQString &fname ) { KTar *tar = new KTar( tmpname, "application/x-gzip" ); tar->open( IO_WriteOnly ); - int i=0; while ( fname.tqfind( '/', i ) != -1 ) i++; // Find last '/' + int i=0; while ( fname.find( '/', i ) != -1 ) i++; // Find last '/' TQString basename = fname.right( fname.length()-i ); if ( basename.endsWith( ".krec" ) ) basename = basename.left( basename.length()-5 ); @@ -263,7 +263,7 @@ void KRecFile::newBuffer( KRecBuffer* buffer ) { connect( buffer, TQT_SIGNAL( deleteSelf( KRecBuffer* ) ), this, TQT_SLOT( deleteBuffer( KRecBuffer* ) ) ); _buffers.append( buffer ); newSize( buffer, buffer->size() ); - _currentBuffer = _buffers.tqfindIndex( buffer ); + _currentBuffer = _buffers.findIndex( buffer ); emit sNewBuffer( buffer ); _saved = false; } @@ -295,7 +295,7 @@ KRecBuffer* KRecFile::getTopBuffer_buffer( int pos ) { return out; } int KRecFile::getTopBuffer_int( int pos ) { - return _buffers.tqfindIndex( getTopBuffer_buffer( pos ) ); + return _buffers.findIndex( getTopBuffer_buffer( pos ) ); } |