From 29a878ff9db7fe75caae6f8cebaad3b3afea3f7b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 2 Jan 2024 11:37:17 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- libk9copy/k9backupdlg.cpp | 4 ++-- libk9copy/k9burndvd.cpp | 16 ++++++++-------- libk9copy/k9dvd.cpp | 8 ++++---- libk9copy/k9dvdauthor.cpp | 10 +++++----- libk9copy/k9mp4enc.cpp | 10 +++++----- libk9copy/k9process.cpp | 2 +- libk9copy/k9processlist.cpp | 4 ++-- libk9copy/k9saveimage.cpp | 2 +- libk9copy/k9titleencopt.cpp | 2 +- 9 files changed, 29 insertions(+), 29 deletions(-) (limited to 'libk9copy') diff --git a/libk9copy/k9backupdlg.cpp b/libk9copy/k9backupdlg.cpp index 113a0d7..3b392d9 100644 --- a/libk9copy/k9backupdlg.cpp +++ b/libk9copy/k9backupdlg.cpp @@ -40,7 +40,7 @@ k9BackupDlg::k9BackupDlg(TQWidget* parent, const char* name, bool modal, WFlags timer = new TQTimer( this ); time = new TQTime(0,0); time->start(); - connect( timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timerDone()) ); + connect( timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timerDone()) ); timer->start(500, 0 ); bAbort->setIconSet(KStdGuiItem::cancel().iconSet()); bPlay->setIconSet(SmallIcon("media-playback-start")); @@ -50,7 +50,7 @@ k9BackupDlg::k9BackupDlg(TQWidget* parent, const char* name, bool modal, WFlags m_totalSteps=0; m_factor=""; m_progress=0; - connect(&m_decoder, TQT_SIGNAL(pixmapReady(TQImage *)), this, TQT_SLOT(drawPixmap(TQImage *))); + connect(&m_decoder, TQ_SIGNAL(pixmapReady(TQImage *)), this, TQ_SLOT(drawPixmap(TQImage *))); m_stop=false; m_playmovie=true; m_cpt=0; diff --git a/libk9copy/k9burndvd.cpp b/libk9copy/k9burndvd.cpp index 8269344..b97332a 100644 --- a/libk9copy/k9burndvd.cpp +++ b/libk9copy/k9burndvd.cpp @@ -125,8 +125,8 @@ const TQString k9BurnDVD::getImageSize() { *proc2 <<"-V "+volId; *proc2 << TQDir::cleanDirPath(workDir +"/dvd"); - connect( proc2, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int )),this, TQT_SLOT(mkisoSizeStderr(TDEProcess *, char *, int)) ); - connect( proc2, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQT_SLOT(mkisoSizeStdout(TDEProcess *, char *, int)) ); + connect( proc2, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int )),this, TQ_SLOT(mkisoSizeStderr(TDEProcess *, char *, int)) ); + connect( proc2, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQ_SLOT(mkisoSizeStdout(TDEProcess *, char *, int)) ); if (proc2->start(TDEProcess::NotifyOnExit,TDEProcess::All)) { // while (proc2->isRunning()) { // tqApp->processEvents(); @@ -158,12 +158,12 @@ void k9BurnDVD::getGenisoimageCmd(k9Process *proc,TQString _fileName,bool _print *proc <<"-o"; *proc <<_fileName; } - connect( proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),this, TQT_SLOT(growisoStderr(TDEProcess *, char *, int)) ); - connect( proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQT_SLOT(growisoStdout(TDEProcess *, char *, int)) ); + connect( proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),this, TQ_SLOT(growisoStderr(TDEProcess *, char *, int)) ); + connect( proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQ_SLOT(growisoStdout(TDEProcess *, char *, int)) ); } else { *proc << "-print-size" << "-quiet"; - connect( proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int )),this, TQT_SLOT(mkisoSizeStderr(TDEProcess *, char *, int)) ); - connect( proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQT_SLOT(mkisoSizeStdout(TDEProcess *, char *, int)) ); + connect( proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int )),this, TQ_SLOT(mkisoSizeStderr(TDEProcess *, char *, int)) ); + connect( proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQ_SLOT(mkisoSizeStdout(TDEProcess *, char *, int)) ); } *proc <setpbTitleStep(0); m_progressDlg->setpbTotalStep(0); - connect(this, TQT_SIGNAL(sigVobProgress(unsigned int,unsigned int)), this, TQT_SLOT(slotVobProgress(unsigned int,unsigned int))); - connect(this, TQT_SIGNAL(sigTitleProgress(unsigned int,unsigned int)), this, TQT_SLOT(slotTitleProgress(unsigned int,unsigned int))); - connect(this, TQT_SIGNAL(sigTitleText(TQString&)), this, TQT_SLOT(slotTitleText(TQString&))); - connect(this, TQT_SIGNAL(sigTotalText(TQString&)), this, TQT_SLOT(slotTotalText(TQString&))); + connect(this, TQ_SIGNAL(sigVobProgress(unsigned int,unsigned int)), this, TQ_SLOT(slotVobProgress(unsigned int,unsigned int))); + connect(this, TQ_SIGNAL(sigTitleProgress(unsigned int,unsigned int)), this, TQ_SLOT(slotTitleProgress(unsigned int,unsigned int))); + connect(this, TQ_SIGNAL(sigTitleText(TQString&)), this, TQ_SLOT(slotTitleText(TQString&))); + connect(this, TQ_SIGNAL(sigTotalText(TQString&)), this, TQ_SLOT(slotTotalText(TQString&))); m_progressDlg->show(); } else m_progressDlg=NULL; diff --git a/libk9copy/k9dvdauthor.cpp b/libk9copy/k9dvdauthor.cpp index b45e1a0..695cd0e 100644 --- a/libk9copy/k9dvdauthor.cpp +++ b/libk9copy/k9dvdauthor.cpp @@ -444,11 +444,11 @@ void k9DVDAuthor::author() { TQString c("dvdauthor"); proc=progress->getProcess();// new TQProcess(c,0); *proc << c << "-x" << m_xml->name(); //locateLocal("tmp", "k9copy/k9author.xml"); - connect( proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), - this, TQT_SLOT(DVDAuthorStderr(TDEProcess *, char *, int )) ); - connect( proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int )), - this, TQT_SLOT(DVDAuthorStdout(TDEProcess *, char *, int)) ); - // connect(progress, TQT_SIGNAL(cancelled()), this, TQT_SLOT(stopProcess())); + connect( proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), + this, TQ_SLOT(DVDAuthorStderr(TDEProcess *, char *, int )) ); + connect( proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int )), + this, TQ_SLOT(DVDAuthorStdout(TDEProcess *, char *, int)) ); + // connect(progress, TQ_SIGNAL(cancelled()), this, TQ_SLOT(stopProcess())); m_copied=0; m_lastPos=0; diff --git a/libk9copy/k9mp4enc.cpp b/libk9copy/k9mp4enc.cpp index 0c3480c..93f2ace 100644 --- a/libk9copy/k9mp4enc.cpp +++ b/libk9copy/k9mp4enc.cpp @@ -46,7 +46,7 @@ k9MP4Enc::k9MP4Enc ( TQObject *parent, const char *name,const TQStringList& ) m_lstVideo=config.getCodecVideo(); timer = new TQTimer ( this ); - connect ( timer, TQT_SIGNAL ( timeout() ), this, TQT_SLOT ( timerDone() ) ); + connect ( timer, TQ_SIGNAL ( timeout() ), this, TQ_SLOT ( timerDone() ) ); m_progress=new k9MP4Dlg ( tqApp->mainWidget(),0 ); } @@ -395,10 +395,10 @@ void k9MP4Enc::execute ( k9DVDTitle *_title ) tqDebug ( "%s", s.ascii() ); time->start(); m_timer3.start(); - connect ( m_process, TQT_SIGNAL ( receivedStdout ( TDEProcess *, char *, int ) ),this, TQT_SLOT ( getStdout ( TDEProcess *, char *, int ) ) ); - connect ( m_process, TQT_SIGNAL ( receivedStderr ( TDEProcess *, char *, int ) ),this, TQT_SLOT ( getStderr ( TDEProcess *, char *, int ) ) ); - //connect(m_process, TQT_SIGNAL(processExited(TDEProcess*)),this,TQT_SLOT(exited(TDEProcess*))); - connect ( m_progress,TQT_SIGNAL ( sigCancel() ),this,TQT_SLOT ( slotCancel() ) ); + connect ( m_process, TQ_SIGNAL ( receivedStdout ( TDEProcess *, char *, int ) ),this, TQ_SLOT ( getStdout ( TDEProcess *, char *, int ) ) ); + connect ( m_process, TQ_SIGNAL ( receivedStderr ( TDEProcess *, char *, int ) ),this, TQ_SLOT ( getStderr ( TDEProcess *, char *, int ) ) ); + //connect(m_process, TQ_SIGNAL(processExited(TDEProcess*)),this,TQ_SLOT(exited(TDEProcess*))); + connect ( m_progress,TQ_SIGNAL ( sigCancel() ),this,TQ_SLOT ( slotCancel() ) ); m_canceled=false; m_progress->show(); m_process->start ( TDEProcess::OwnGroup, TDEProcess::All ); diff --git a/libk9copy/k9process.cpp b/libk9copy/k9process.cpp index 552fed7..1d90637 100644 --- a/libk9copy/k9process.cpp +++ b/libk9copy/k9process.cpp @@ -17,7 +17,7 @@ k9Process::k9Process(TQObject *parent, const char *name) : TDEProcess(parent, name),m_waitSync(false) { - connect(this,TQT_SIGNAL(processExited( TDEProcess* )),this,TQT_SLOT(slotProcessExited( TDEProcess* ))); + connect(this,TQ_SIGNAL(processExited( TDEProcess* )),this,TQ_SLOT(slotProcessExited( TDEProcess* ))); } diff --git a/libk9copy/k9processlist.cpp b/libk9copy/k9processlist.cpp index 4f788a4..3b3087c 100644 --- a/libk9copy/k9processlist.cpp +++ b/libk9copy/k9processlist.cpp @@ -50,7 +50,7 @@ k9ProcessList::k9ProcessList(TQWidget* parent, const char* name, WFlags fl) : pr { m_processes.setAutoDelete(true); m_maxProcess=4; - connect(&m_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(timeout())); + connect(&m_timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(timeout())); bCancel->setEnabled(false); } @@ -153,7 +153,7 @@ k9Process *k9ProcessList::addProcess(const TQString &label) { TQListViewItem *item = new _k9ProcessListItem(lProcess,label); m_items[process]=item; setProgress(process,0,100); - connect(process,TQT_SIGNAL(processExited( TDEProcess* )),this,TQT_SLOT(processExited(TDEProcess*))); + connect(process,TQ_SIGNAL(processExited( TDEProcess* )),this,TQ_SLOT(processExited(TDEProcess*))); return process; } diff --git a/libk9copy/k9saveimage.cpp b/libk9copy/k9saveimage.cpp index 1a2671e..fbc8f9d 100644 --- a/libk9copy/k9saveimage.cpp +++ b/libk9copy/k9saveimage.cpp @@ -31,7 +31,7 @@ k9SaveImage::k9SaveImage() m_tempFile= new KTempFile(locateLocal("tmp", "k9copy/k9p"), ""); m_tempFile->setAutoDelete(true); m_decoder=new kDecMPEG2(); - connect(m_decoder, TQT_SIGNAL(pixmapReady(TQImage *)), this, TQT_SLOT(drawImage(TQImage *))); + connect(m_decoder, TQ_SIGNAL(pixmapReady(TQImage *)), this, TQ_SLOT(drawImage(TQImage *))); } diff --git a/libk9copy/k9titleencopt.cpp b/libk9copy/k9titleencopt.cpp index 451eea2..d3257ec 100644 --- a/libk9copy/k9titleencopt.cpp +++ b/libk9copy/k9titleencopt.cpp @@ -17,7 +17,7 @@ k9TitleEncOpt::k9TitleEncOpt(k9DVDTitle *parent) : TQObject(parent, "") { - connect (parent,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(load())); + connect (parent,TQ_SIGNAL(selectionChanged()),this,TQ_SLOT(load())); load(); } -- cgit v1.2.1