diff options
author | Michele Calgaro <[email protected]> | 2023-12-29 16:42:37 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-31 22:22:08 +0900 |
commit | f3f67ab73137aa1ce1bc14753cc0e09a1b44f9bd (patch) | |
tree | 49b5284de3c34fa5beb84bd52110e7e1cdba826d /src/common/global | |
parent | 26bcb362b66b78984c0c7567d00c12f3425d6468 (diff) | |
download | piklab-f3f67ab73137aa1ce1bc14753cc0e09a1b44f9bd.tar.gz piklab-f3f67ab73137aa1ce1bc14753cc0e09a1b44f9bd.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit c679361a50aee162491e7195f2bcfdbbf341dde5)
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 |