From af0b8f5d1e5e00b1f3b48658d89876c2df28e71c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 14 Jan 2024 14:09:37 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- kfloppy/floppy.cpp | 14 +++++++------- kfloppy/format.cpp | 22 +++++++++++----------- kfloppy/zip.cpp | 18 +++++++++--------- 3 files changed, 27 insertions(+), 27 deletions(-) (limited to 'kfloppy') diff --git a/kfloppy/floppy.cpp b/kfloppy/floppy.cpp index cf9601d..e7d005a 100644 --- a/kfloppy/floppy.cpp +++ b/kfloppy/floppy.cpp @@ -255,7 +255,7 @@ FloppyData::FloppyData(TQWidget * parent, const char * name) " Due to a limitation of MS-DOS the label can only be 11 characters long." " Please note that Minix does not support labels, whatever you enter here.") ); - connect(labellabel,TQT_SIGNAL(toggled(bool)),lineedit,TQT_SLOT(setEnabled(bool))); + connect(labellabel,TQ_SIGNAL(toggled(bool)),lineedit,TQ_SLOT(setEnabled(bool))); TQVBoxLayout* v3 = new TQVBoxLayout( h1 ); @@ -264,7 +264,7 @@ FloppyData::FloppyData(TQWidget * parent, const char * name) formatbutton->setAutoRepeat( false ); if (!numFileSystems) formatbutton->setDisabled(false); // We have not any helper program for creating any file system - connect(formatbutton,TQT_SIGNAL(clicked()),this,TQT_SLOT(format())); + connect(formatbutton,TQ_SIGNAL(clicked()),this,TQ_SLOT(format())); v3->addWidget( formatbutton ); TQWhatsThis::add( formatbutton, i18n("Click here to start formatting.") ); @@ -281,7 +281,7 @@ FloppyData::FloppyData(TQWidget * parent, const char * name) quitbutton = new KPushButton( KStdGuiItem::quit(), this ); quitbutton->setAutoRepeat( false ); - connect(quitbutton,TQT_SIGNAL(clicked()),this,TQT_SLOT(quit())); + connect(quitbutton,TQ_SIGNAL(clicked()),this,TQ_SLOT(quit())); v3->addWidget( quitbutton ); ml->addSpacing( 10 ); @@ -538,10 +538,10 @@ void FloppyData::format(){ if (formatActions) delete formatActions; formatActions = new KFActionQueue(this); - connect(formatActions,TQT_SIGNAL(status(const TQString &,int)), - this,TQT_SLOT(formatStatus(const TQString &,int))); - connect(formatActions,TQT_SIGNAL(done(KFAction *,bool)), - this,TQT_SLOT(reset())); + connect(formatActions,TQ_SIGNAL(status(const TQString &,int)), + this,TQ_SLOT(formatStatus(const TQString &,int))); + connect(formatActions,TQ_SIGNAL(done(KFAction *,bool)), + this,TQ_SLOT(reset())); if ( quick->isChecked()) { diff --git a/kfloppy/format.cpp b/kfloppy/format.cpp index 5c3729c..daa74ed 100644 --- a/kfloppy/format.cpp +++ b/kfloppy/format.cpp @@ -146,12 +146,12 @@ void KFActionQueue::queue(KFAction *p) else { kdDebug(KFAREA) << "Running action " << next->name() << endl; - TQObject::connect(next,TQT_SIGNAL(done(KFAction *,bool)), - this,TQT_SLOT(actionDone(KFAction *,bool))); + TQObject::connect(next,TQ_SIGNAL(done(KFAction *,bool)), + this,TQ_SLOT(actionDone(KFAction *,bool))); // Propagate signals - TQObject::connect(next,TQT_SIGNAL(status(const TQString &,int)), - this,TQT_SIGNAL(status(const TQString &,int))); - TQTimer::singleShot(0,next,TQT_SLOT(exec())); + TQObject::connect(next,TQ_SIGNAL(status(const TQString &,int)), + this,TQ_SIGNAL(status(const TQString &,int))); + TQTimer::singleShot(0,next,TQ_SLOT(exec())); } } @@ -370,12 +370,12 @@ bool FloppyAction::startProcess() { DEBUGSETUP; - connect(theProcess,TQT_SIGNAL(processExited(TDEProcess *)), - this,TQT_SLOT(processDone(TDEProcess *))); - connect(theProcess,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)), - this,TQT_SLOT(processStdOut(TDEProcess *,char *,int))); - connect(theProcess,TQT_SIGNAL(receivedStderr(TDEProcess *,char *,int)), - this,TQT_SLOT(processStdErr(TDEProcess *,char *,int))); + connect(theProcess,TQ_SIGNAL(processExited(TDEProcess *)), + this,TQ_SLOT(processDone(TDEProcess *))); + connect(theProcess,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)), + this,TQ_SLOT(processStdOut(TDEProcess *,char *,int))); + connect(theProcess,TQ_SIGNAL(receivedStderr(TDEProcess *,char *,int)), + this,TQ_SLOT(processStdErr(TDEProcess *,char *,int))); theProcess->setEnvironment( "LC_ALL", "C" ); // We need the untranslated output of the tool return theProcess->start(TDEProcess::NotifyOnExit, diff --git a/kfloppy/zip.cpp b/kfloppy/zip.cpp index a35a715..695d8cd 100644 --- a/kfloppy/zip.cpp +++ b/kfloppy/zip.cpp @@ -143,14 +143,14 @@ void ZipFormat::quit() if (statusTimer) delete statusTimer; statusTimer = new TQTimer(this); - connect(p,TQT_SIGNAL(processExited(TDEProcess *)), - this,TQT_SLOT(transition())); - connect(p,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)), - this,TQT_SLOT(processResult(TDEProcess *,char *,int))); - connect(p,TQT_SIGNAL(receivedStderr(TDEProcess *,char *,int)), - this,TQT_SLOT(processResult(TDEProcess *,char *,int))); - connect(statusTimer,TQT_SIGNAL(timeout()), - this,TQT_SLOT(statusRequest())); + connect(p,TQ_SIGNAL(processExited(TDEProcess *)), + this,TQ_SLOT(transition())); + connect(p,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)), + this,TQ_SLOT(processResult(TDEProcess *,char *,int))); + connect(p,TQ_SIGNAL(receivedStderr(TDEProcess *,char *,int)), + this,TQ_SLOT(processResult(TDEProcess *,char *,int))); + connect(statusTimer,TQ_SIGNAL(timeout()), + this,TQ_SLOT(statusRequest())); transition(); } @@ -174,7 +174,7 @@ void ZipFormat::transition() // No point in making a dizzy display of it. statusTimer->start(10000); TQTimer::singleShot(1000,this, - TQT_SLOT(statusRequest())); + TQ_SLOT(statusRequest())); totalBlocks=12288; // 196608 * 512b = 12288 * 8192b ; } else -- cgit v1.2.1