summaryrefslogtreecommitdiffstats
path: root/krec/krecord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krec/krecord.cpp')
-rw-r--r--krec/krecord.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/krec/krecord.cpp b/krec/krecord.cpp
index 3bd18c72..2ff21e34 100644
--- a/krec/krecord.cpp
+++ b/krec/krecord.cpp
@@ -119,7 +119,7 @@ void KRecPrivate::saveFile() {
}
void KRecPrivate::saveAsFile() {
//kdDebug( 60005 ) << k_funcinfo << endl;
- if ( _currentFile ) pSaveFile( TQString::null );
+ if ( _currentFile ) pSaveFile( TQString() );
}
void KRecPrivate::pSaveFile( const TQString &filename ) {
if ( !_currentFile )
@@ -138,7 +138,7 @@ bool KRecPrivate::closeFile() {
//kdDebug( 60005 ) << k_funcinfo << endl;
if ( _currentFile ) {
if ( !_currentFile->saved() ) {
- int choice = KMessageBox::questionYesNoCancel( _impl, i18n( "The document \"%1\" has been modified.\nDo you want to save it?" ).arg( _currentFile->filename() ), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard() );
+ int choice = KMessageBox::questionYesNoCancel( _impl, i18n( "The document \"%1\" has been modified.\nDo you want to save it?" ).tqarg( _currentFile->filename() ), TQString(), KStdGuiItem::save(), KStdGuiItem::discard() );
if ( choice == KMessageBox::Yes ) saveFile();
if ( choice == KMessageBox::Cancel ) return false;
// go on if KMessageBox::No
@@ -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.find( '.', -5 );
+ int lastdot = filename.tqfind( '.', -5 );
TQString ending = filename.right( filename.length()-lastdot-1 );
_exportitem = KRecGlobal::the()->getExportItemForEnding( ending );
if ( _exportitem ) {
@@ -164,7 +164,7 @@ void KRecPrivate::exportFile() {
if ( _exportitem->initialize( filename ) ) {
connect( _exportitem, TQT_SIGNAL( getData( TQByteArray& ) ), _currentFile, TQT_SLOT( getData( TQByteArray& ) ) );
connect( _currentFile, TQT_SIGNAL( endReached() ), _exportitem, TQT_SLOT( stop() ) );
- connect( _currentFile, TQT_SIGNAL( endReached() ), this, TQT_SLOT( endExportFile() ) );
+ connect( _currentFile, TQT_SIGNAL( endReached() ), TQT_TQOBJECT(this), TQT_SLOT( endExportFile() ) );
_exportitem->start();
}
} else
@@ -179,13 +179,13 @@ void KRecPrivate::exportFile() {
"you did everything right, please file a bugreport saying what " \
"you where about to do and please quote the following line:<br />" \
"%1</li>" \
- "</ul></qt>" ).arg( KRecGlobal::the()->exportFormatEndings() ),
+ "</ul></qt>" ).tqarg( KRecGlobal::the()->exportFormatEndings() ),
i18n( "Could not determine encodingmethod" ) );
}
} else KRecGlobal::the()->message( i18n( "There is nothing to export." ) );
checkActions();
}
-void KRecPrivate::endExportFile() { TQTimer::singleShot( 20, this, TQT_SLOT( endExportFile2() ) ); }
+void KRecPrivate::endExportFile() { TQTimer::singleShot( 20, TQT_TQOBJECT(this), TQT_SLOT( endExportFile2() ) ); }
void KRecPrivate::endExportFile2() {
_exportitem->finalize();
disconnect( _currentFile, 0, _exportitem, 0 );
@@ -248,7 +248,7 @@ void KRecPrivate::toEnd() {
}
void KRecPrivate::forceTipOfDay() {
- KTipDialog::showTip( _impl, TQString::null, true );
+ KTipDialog::showTip( _impl, TQString(), true );
}
void KRecPrivate::execaRtsControl() {
@@ -264,12 +264,12 @@ void KRecPrivate::execKMix() {
*/
-KRecord::KRecord(TQWidget *parent, const char *name )
- : KMainWindow(parent,name)
+KRecord::KRecord(TQWidget *tqparent, const char *name )
+ : KMainWindow(tqparent,name)
, d( new KRecPrivate( this ) )
{
kdDebug( 60005 ) << k_funcinfo << endl;
- //kdDebug( 60005 )<<"KRecord::KRecord( TQWidget *"<<parent<<", const char* "<<name<<" )"<<endl; // (DEBUG)
+ //kdDebug( 60005 )<<"KRecord::KRecord( TQWidget *"<<tqparent<<", const char* "<<name<<" )"<<endl; // (DEBUG)
KRecGlobal::the()->setMainWidget( this );
KRecGlobal::the()->setStatusBar( statusBar() );
@@ -290,7 +290,7 @@ KRecord::KRecord(TQWidget *parent, const char *name )
KStdAction::save( d, TQT_SLOT( saveFile() ), actionCollection() );
KStdAction::saveAs( d, TQT_SLOT( saveAsFile() ), actionCollection() );
KStdAction::close( d, TQT_SLOT( closeFile() ), actionCollection() );
- KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() );
+ KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() );
KStdAction::tipOfDay( d, TQT_SLOT( forceTipOfDay() ), actionCollection() );
@@ -298,11 +298,11 @@ KRecord::KRecord(TQWidget *parent, const char *name )
d, TQT_SLOT( exportFile() ), actionCollection(), "export_file" );
d->aRecord = new KAction( i18n( "&Record" ), KShortcut( Key_R ),
- this, TQT_SLOT( startRec() ), actionCollection(), "player_record" );
+ TQT_TQOBJECT(this), TQT_SLOT( startRec() ), actionCollection(), "player_record" );
d->aPlay = new KAction( i18n( "&Play" ), KShortcut( Key_P ),
- this, TQT_SLOT( startPlay() ), actionCollection(), "player_play" );
+ TQT_TQOBJECT(this), TQT_SLOT( startPlay() ), actionCollection(), "player_play" );
d->aStop = new KAction( i18n( "&Stop" ), KShortcut( Key_S ),
- this, TQT_SLOT( stopRec() ), actionCollection(), "player_stop" );
+ TQT_TQOBJECT(this), TQT_SLOT( stopRec() ), actionCollection(), "player_stop" );
d->aThru = new KToggleAction( i18n( "Play Through" ), KShortcut( CTRL + Key_P), actionCollection(), "play_thru" );
connect( d->aThru, TQT_SIGNAL( toggled( bool ) ), d, TQT_SLOT( playthru( bool ) ) );