summaryrefslogtreecommitdiffstats
path: root/krec
diff options
context:
space:
mode:
Diffstat (limited to 'krec')
-rw-r--r--krec/krecconfig_fileswidget.cpp18
-rw-r--r--krec/krecconfigure.cpp16
-rw-r--r--krec/krecfile.cpp8
-rw-r--r--krec/krecfilewidgets.cpp4
-rw-r--r--krec/krecglobal.cpp4
-rw-r--r--krec/krecord.cpp2
6 files changed, 26 insertions, 26 deletions
diff --git a/krec/krecconfig_fileswidget.cpp b/krec/krecconfig_fileswidget.cpp
index 36e4521b..206eda1b 100644
--- a/krec/krecconfig_fileswidget.cpp
+++ b/krec/krecconfig_fileswidget.cpp
@@ -119,12 +119,12 @@ void KRecConfigFilesWidget::defaults() {
}
void KRecConfigFilesWidget::ratechanged( int index ) {
- if ( _ratebox->tqfind( index ) == _rateother ) _rateotherbox->setEnabled( true );
+ if ( _ratebox->find( index ) == _rateother ) _rateotherbox->setEnabled( true );
else _rateotherbox->setEnabled( false );
- if ( _ratebox->tqfind( index ) == _rate48 ) _samplingRate = 48000;
- if ( _ratebox->tqfind( index ) == _rate44 ) _samplingRate = 44100;
- if ( _ratebox->tqfind( index ) == _rate22 ) _samplingRate = 22050;
- if ( _ratebox->tqfind( index ) == _rate11 ) _samplingRate = 11025;
+ if ( _ratebox->find( index ) == _rate48 ) _samplingRate = 48000;
+ if ( _ratebox->find( index ) == _rate44 ) _samplingRate = 44100;
+ if ( _ratebox->find( index ) == _rate22 ) _samplingRate = 22050;
+ if ( _ratebox->find( index ) == _rate11 ) _samplingRate = 11025;
emit sRateChanged( _samplingRate );
}
void KRecConfigFilesWidget::rateotherchanged( const TQString& text ) {
@@ -132,13 +132,13 @@ void KRecConfigFilesWidget::rateotherchanged( const TQString& text ) {
emit sRateChanged( _samplingRate );
}
void KRecConfigFilesWidget::channelschanged( int index ) {
- if ( _channelsbox->tqfind( index ) == _channels2 ) _channels = 2;
- if ( _channelsbox->tqfind( index ) == _channels1 ) _channels = 1;
+ if ( _channelsbox->find( index ) == _channels2 ) _channels = 2;
+ if ( _channelsbox->find( index ) == _channels1 ) _channels = 1;
emit sChannelsChanged( _channels );
}
void KRecConfigFilesWidget::bitschanged( int index ) {
- if ( _bitsbox->tqfind( index ) == _bits16 ) _bits = 16;
- if ( _bitsbox->tqfind( index ) == _bits8 ) _bits = 8;
+ if ( _bitsbox->find( index ) == _bits16 ) _bits = 16;
+ if ( _bitsbox->find( index ) == _bits8 ) _bits = 8;
emit sBitsChanged( _bits );
}
diff --git a/krec/krecconfigure.cpp b/krec/krecconfigure.cpp
index 65cb7497..5201c28d 100644
--- a/krec/krecconfigure.cpp
+++ b/krec/krecconfigure.cpp
@@ -151,17 +151,17 @@ void KRecConfigGeneral::defaults() {
void KRecConfigGeneral::displaychanged( int index ) {
int verbose = _displaymode / 100;
- if ( _displaybox->tqfind( index ) == _display0 ) _displaymode = 0 + verbose * 100;
- if ( _displaybox->tqfind( index ) == _display1 ) _displaymode = 1 + verbose * 100;
- if ( _displaybox->tqfind( index ) == _display2 ) _displaymode = 2 + verbose * 100;
- if ( _displaybox->tqfind( index ) == _display3 ) _displaymode = 3 + verbose * 100;
+ if ( _displaybox->find( index ) == _display0 ) _displaymode = 0 + verbose * 100;
+ if ( _displaybox->find( index ) == _display1 ) _displaymode = 1 + verbose * 100;
+ if ( _displaybox->find( index ) == _display2 ) _displaymode = 2 + verbose * 100;
+ if ( _displaybox->find( index ) == _display3 ) _displaymode = 3 + verbose * 100;
emit changed( true );
}
void KRecConfigGeneral::framebasechanged( int index ) {
- if ( _framebasebox->tqfind( index ) == _framebase30 ) _framebase = 30;
- if ( _framebasebox->tqfind( index ) == _framebase25 ) _framebase = 25;
- if ( _framebasebox->tqfind( index ) == _framebase75 ) _framebase = 75;
- if ( _framebasebox->tqfind( index ) == _framebaseother ) {
+ if ( _framebasebox->find( index ) == _framebase30 ) _framebase = 30;
+ if ( _framebasebox->find( index ) == _framebase25 ) _framebase = 25;
+ if ( _framebasebox->find( index ) == _framebase75 ) _framebase = 75;
+ if ( _framebasebox->find( index ) == _framebaseother ) {
_framebaseotherbox->setEnabled( true );
_framebase = _framebaseotherline->text().toInt();
kdDebug(60005) << k_funcinfo << "Framebase=" << _framebase << endl;
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 ) );
}
diff --git a/krec/krecfilewidgets.cpp b/krec/krecfilewidgets.cpp
index 075a2151..cbcaba81 100644
--- a/krec/krecfilewidgets.cpp
+++ b/krec/krecfilewidgets.cpp
@@ -232,12 +232,12 @@ void KRecBufferWidget::paintEvent( TQPaintEvent* ) {
void KRecBufferWidget::mousePressEvent( TQMouseEvent* qme ) {
kdDebug( 60005 ) << k_funcinfo << endl;
- if ( _main_region->tqcontains( qme->pos() ) || _title_region->tqcontains( qme->pos() ) )
+ if ( _main_region->contains( qme->pos() ) || _title_region->contains( qme->pos() ) )
if ( qme->button() == Qt::RightButton )
emit popupMenu( this, qme->globalPos() );
}
void KRecBufferWidget::mouseDoubleClickEvent( TQMouseEvent* qme ) {
- if ( _title_region->tqcontains( qme->pos() ) )
+ if ( _title_region->contains( qme->pos() ) )
_buffer->setActive( !_buffer->active() );
}
diff --git a/krec/krecglobal.cpp b/krec/krecglobal.cpp
index e3d8c71b..58822f50 100644
--- a/krec/krecglobal.cpp
+++ b/krec/krecglobal.cpp
@@ -58,7 +58,7 @@ void KRecGlobal::message( const TQString &text ) { if ( _statusbar ) _statusbar-
bool KRecGlobal::registerExport( KRecExportItem* item ) {
//kdDebug( 60005 ) << k_funcinfo << "About to register ExportItem for \"" << item->exportFormat() << "\" extensions:\"" << item->extensions() << "\"" << endl;
- if ( !the()->_exports->tqfind( item->exportFormat() ) ) {
+ if ( !the()->_exports->find( item->exportFormat() ) ) {
the()->_exports->insert( item->exportFormat(), item );
the()->_exportformats << item->exportFormat();
}
@@ -66,7 +66,7 @@ bool KRecGlobal::registerExport( KRecExportItem* item ) {
}
KRecExportItem* KRecGlobal::getExportItem( const TQString &exportFormat ) {
- KRecExportItem *tmp = _exports->tqfind( exportFormat );
+ KRecExportItem *tmp = _exports->find( exportFormat );
return tmp->newItem();
}
diff --git a/krec/krecord.cpp b/krec/krecord.cpp
index 2ff21e34..26f312be 100644
--- a/krec/krecord.cpp
+++ b/krec/krecord.cpp
@@ -156,7 +156,7 @@ void KRecPrivate::exportFile() {
if ( _currentFile ) {
TQString filename = KFileDialog::getSaveFileName( "", KRecGlobal::the()->exportFormatEndings(), _impl, "Export File As" );
if ( !filename.isNull() ) {
- int lastdot = filename.tqfind( '.', -5 );
+ int lastdot = filename.find( '.', -5 );
TQString ending = filename.right( filename.length()-lastdot-1 );
_exportitem = KRecGlobal::the()->getExportItemForEnding( ending );
if ( _exportitem ) {