diff options
author | Michele Calgaro <[email protected]> | 2023-12-29 16:42:37 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-29 16:48:53 +0900 |
commit | c679361a50aee162491e7195f2bcfdbbf341dde5 (patch) | |
tree | c8ff90ba1810054b7e53a79649b0e33a0937e74f /src/common/global | |
parent | a8207be921513da0ccccf41e36e056736c2b8457 (diff) | |
download | piklab-c679361a50aee162491e7195f2bcfdbbf341dde5.tar.gz piklab-c679361a50aee162491e7195f2bcfdbbf341dde5.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/common/global')
-rw-r--r-- | src/common/global/process.cpp | 12 | ||||
-rw-r--r-- | src/common/global/purl.cpp | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/common/global/process.cpp b/src/common/global/process.cpp index 9dc4761..bc6102d 100644 --- a/src/common/global/process.cpp +++ b/src/common/global/process.cpp @@ -22,8 +22,8 @@ Process::State Process::runSynchronously(Base &process, RunActions actions, uint timeout) { Synchronous sync(timeout); - TQObject::connect(&process, TQT_SIGNAL(done(int)), &sync, TQT_SLOT(done())); - TQObject::connect(&process, TQT_SIGNAL(requestSynchronousStop()), &sync, TQT_SLOT(done())); + TQObject::connect(&process, TQ_SIGNAL(done(int)), &sync, TQ_SLOT(done())); + TQObject::connect(&process, TQ_SIGNAL(requestSynchronousStop()), &sync, TQ_SLOT(done())); if ( (actions & Start) && !process.start(0) ) return process.state(); Q_ASSERT( process.isRunning() ); if ( !sync.enterLoop() ) process.timeoutSlot(); @@ -35,11 +35,11 @@ Process::Base::Base(TQObject *parent, const char *name) : TQObject(parent, name), _state(Stopped) { _process = new TDEProcess(this); - connect(_process, TQT_SIGNAL(processExited(TDEProcess *)), TQT_SLOT(exited())); - connect(_process, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), TQT_SLOT(receivedStdout(TDEProcess*, char *, int))); - connect(_process, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), TQT_SLOT(receivedStderr(TDEProcess*, char *, int))); + connect(_process, TQ_SIGNAL(processExited(TDEProcess *)), TQ_SLOT(exited())); + connect(_process, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), TQ_SLOT(receivedStdout(TDEProcess*, char *, int))); + connect(_process, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), TQ_SLOT(receivedStderr(TDEProcess*, char *, int))); _timer = new TQTimer(this); - connect(_timer, TQT_SIGNAL(timeout()), TQT_SLOT(timeoutSlot())); + connect(_timer, TQ_SIGNAL(timeout()), TQ_SLOT(timeoutSlot())); } Process::Base::~Base() diff --git a/src/common/global/purl.cpp b/src/common/global/purl.cpp index c47fa7b..7b29f56 100644 --- a/src/common/global/purl.cpp +++ b/src/common/global/purl.cpp @@ -28,8 +28,8 @@ PURL::Http::Http(const TQString &hostname) : TQHttp(hostname) { - connect(this, TQT_SIGNAL(responseHeaderReceived(const TQHttpResponseHeader &)), - TQT_SLOT(responseHeaderReceivedSlot(const TQHttpResponseHeader &))); + connect(this, TQ_SIGNAL(responseHeaderReceived(const TQHttpResponseHeader &)), + TQ_SLOT(responseHeaderReceivedSlot(const TQHttpResponseHeader &))); } //----------------------------------------------------------------------------- @@ -254,7 +254,7 @@ bool PURL::Base::httpUrlExists(bool *ok) const if (ok) *ok = false; Http http(_url.host()); Synchronous sync(500); - TQObject::connect(&http, TQT_SIGNAL(done(bool)), &sync, TQT_SLOT(done())); + TQObject::connect(&http, TQ_SIGNAL(done(bool)), &sync, TQ_SLOT(done())); TQFileInfo info(_url.fileName(false)); http.head(_url.path()); if ( !sync.enterLoop() ) return false; // timeout |