diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 12:28:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 12:28:49 +0900 |
commit | c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610 (patch) | |
tree | 50b08262da538c5b91f77e83e4b80d7fd6dbe0de /atlantik/atlanticd | |
parent | 51f65427771c47f6d34cda56b07d9d82bd0bfd33 (diff) | |
download | tdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.tar.gz tdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'atlantik/atlanticd')
-rw-r--r-- | atlantik/atlanticd/atlanticclient.cpp | 4 | ||||
-rw-r--r-- | atlantik/atlanticd/atlanticdaemon.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/atlantik/atlanticd/atlanticclient.cpp b/atlantik/atlanticd/atlanticclient.cpp index 0e4e3e12..da167a88 100644 --- a/atlantik/atlanticd/atlanticclient.cpp +++ b/atlantik/atlanticd/atlanticclient.cpp @@ -22,7 +22,7 @@ AtlanticClient::AtlanticClient(TQObject *parent, const char *name) : TQSocket(parent, name) { - connect(this, TQT_SIGNAL(readyRead()), this, TQT_SLOT(readData())); + connect(this, TQ_SIGNAL(readyRead()), this, TQ_SLOT(readData())); } void AtlanticClient::sendData(const TQString &data) @@ -37,7 +37,7 @@ void AtlanticClient::readData() emit clientInput(this, readLine()); // There might be more data - TQTimer::singleShot(0, this, TQT_SLOT(readData())); + TQTimer::singleShot(0, this, TQ_SLOT(readData())); } else { diff --git a/atlantik/atlanticd/atlanticdaemon.cpp b/atlantik/atlanticd/atlanticdaemon.cpp index 84a27925..f4f01628 100644 --- a/atlantik/atlanticd/atlanticdaemon.cpp +++ b/atlantik/atlanticd/atlanticdaemon.cpp @@ -28,13 +28,13 @@ AtlanticDaemon::AtlanticDaemon() { m_serverSocket = new ServerSocket(1234, 100); - connect(m_serverSocket, TQT_SIGNAL(newClient(AtlanticClient *)), this, TQT_SLOT(newClient(AtlanticClient *))); + connect(m_serverSocket, TQ_SIGNAL(newClient(AtlanticClient *)), this, TQ_SLOT(newClient(AtlanticClient *))); m_atlanticCore = new AtlanticCore(this, "atlanticCore"); // Create socket for Monopigator m_monopigatorSocket = new TQSocket(); - connect(m_monopigatorSocket, TQT_SIGNAL(connected()), this, TQT_SLOT(monopigatorConnected())); + connect(m_monopigatorSocket, TQ_SIGNAL(connected()), this, TQ_SLOT(monopigatorConnected())); // Register server monopigatorRegister(); @@ -57,14 +57,14 @@ void AtlanticDaemon::monopigatorConnected() m_monopigatorSocket->close(); // Monopigator clears old entries, so keep registering every 180s - TQTimer::singleShot(180000, this, TQT_SLOT(monopigatorRegister())); + TQTimer::singleShot(180000, this, TQ_SLOT(monopigatorRegister())); } void AtlanticDaemon::newClient(AtlanticClient *client) { m_clients.append(client); - connect(client, TQT_SIGNAL(clientInput(AtlanticClient *, const TQString &)), this, TQT_SLOT(clientInput(AtlanticClient *, const TQString &))); + connect(client, TQ_SIGNAL(clientInput(AtlanticClient *, const TQString &)), this, TQ_SLOT(clientInput(AtlanticClient *, const TQString &))); } void AtlanticDaemon::clientInput(AtlanticClient *client, const TQString &data) |