summaryrefslogtreecommitdiffstats
path: root/kfloppy
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-14 14:09:37 +0900
committerMichele Calgaro <[email protected]>2024-01-18 22:46:01 +0900
commit278d2f50538b5465caa86fc7608d9cdfddf36cb9 (patch)
tree4a7510f5edd4198094ddd9ae4d81ca2a90da7990 /kfloppy
parenta8bb8db5a25e70bf9de62c56c15c442883a752dc (diff)
downloadtdeutils-278d2f50538b5465caa86fc7608d9cdfddf36cb9.tar.gz
tdeutils-278d2f50538b5465caa86fc7608d9cdfddf36cb9.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit af0b8f5d1e5e00b1f3b48658d89876c2df28e71c)
Diffstat (limited to 'kfloppy')
-rw-r--r--kfloppy/floppy.cpp14
-rw-r--r--kfloppy/format.cpp22
-rw-r--r--kfloppy/zip.cpp18
3 files changed, 27 insertions, 27 deletions
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.</qt>") );
- 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("<qt>Click here to start formatting.</qt>") );
@@ -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