From 40393e30bb743346b6b40bf130da35419c12ebdc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 13 Jan 2024 17:34:53 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit 1329ec6abbcb7b79cd960e0ca138f16598d5f11f) --- kpf/src/WebServer.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'kpf/src/WebServer.cpp') diff --git a/kpf/src/WebServer.cpp b/kpf/src/WebServer.cpp index 20320a32..6d10d8bd 100644 --- a/kpf/src/WebServer.cpp +++ b/kpf/src/WebServer.cpp @@ -110,10 +110,10 @@ namespace KPF loadConfig(); publish(); - connect(&d->bindTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotBind())); - connect(&d->writeTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotWrite())); - connect(&d->resetOutputTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotCheckOutput())); - connect(&d->backlogTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotClearBacklog())); + connect(&d->bindTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotBind())); + connect(&d->writeTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotWrite())); + connect(&d->resetOutputTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotCheckOutput())); + connect(&d->backlogTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotClearBacklog())); d->bindTimer .start( 0, true); d->resetOutputTimer .start(1000 / SamplesPerSecond, false); @@ -144,10 +144,10 @@ namespace KPF saveConfig(); publish(); - connect(&d->bindTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotBind())); - connect(&d->writeTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotWrite())); - connect(&d->resetOutputTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotCheckOutput())); - connect(&d->backlogTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotClearBacklog())); + connect(&d->bindTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotBind())); + connect(&d->writeTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotWrite())); + connect(&d->resetOutputTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotCheckOutput())); + connect(&d->backlogTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotClearBacklog())); d->bindTimer .start( 0, true); d->resetOutputTimer .start(1000 / SamplesPerSecond, false); @@ -164,7 +164,7 @@ namespace KPF void WebServer::publish() { d->service = new DNSSD::PublicService(d->serverName,"_http._tcp",d->listenPort); - connect(d->service,TQT_SIGNAL(published(bool)),this,TQT_SLOT(wasPublished(bool))); + connect(d->service,TQ_SIGNAL(published(bool)),this,TQ_SLOT(wasPublished(bool))); d->service->publishAsync(); } @@ -195,7 +195,7 @@ namespace KPF emit(contentionChange(d->portContention)); if (!d->portContention) - connect(d->socket, TQT_SIGNAL(connection(int)), TQT_SLOT(slotConnection(int))); + connect(d->socket, TQ_SIGNAL(connection(int)), TQ_SLOT(slotConnection(int))); else { @@ -277,18 +277,18 @@ namespace KPF connect ( s, - TQT_SIGNAL(output(Server *, ulong)), - TQT_SLOT(slotOutput(Server *, ulong)) + TQ_SIGNAL(output(Server *, ulong)), + TQ_SLOT(slotOutput(Server *, ulong)) ); - connect(s, TQT_SIGNAL(finished(Server *)), TQT_SLOT(slotFinished(Server *))); - connect(s, TQT_SIGNAL(request(Server *)), TQT_SIGNAL(request(Server *))); - connect(s, TQT_SIGNAL(response(Server *)), TQT_SIGNAL(response(Server *))); + connect(s, TQ_SIGNAL(finished(Server *)), TQ_SLOT(slotFinished(Server *))); + connect(s, TQ_SIGNAL(request(Server *)), TQ_SIGNAL(request(Server *))); + connect(s, TQ_SIGNAL(response(Server *)), TQ_SIGNAL(response(Server *))); d->serverList.append(s); connect - (s, TQT_SIGNAL(readyToWrite(Server *)), TQT_SLOT(slotReadyToWrite(Server *))); + (s, TQ_SIGNAL(readyToWrite(Server *)), TQ_SLOT(slotReadyToWrite(Server *))); emit(connection(s)); -- cgit v1.2.1