diff options
author | Michele Calgaro <[email protected]> | 2024-01-09 19:12:21 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-09 19:12:21 +0900 |
commit | 59999a5ad2e7a43bba88d4d25ef970c2fbc575f0 (patch) | |
tree | a7bd90575f42faec41c75058e1a14b73b808973f /src/__TODO/UiGuiIndentServer.cpp | |
parent | fbbe9cf4e456b0e045d43979ecd4dd620e4183fe (diff) | |
download | universal-indent-gui-tqt-59999a5ad2e7a43bba88d4d25ef970c2fbc575f0.tar.gz universal-indent-gui-tqt-59999a5ad2e7a43bba88d4d25ef970c2fbc575f0.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/__TODO/UiGuiIndentServer.cpp')
-rw-r--r-- | src/__TODO/UiGuiIndentServer.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/__TODO/UiGuiIndentServer.cpp b/src/__TODO/UiGuiIndentServer.cpp index 8584650..76b18d6 100644 --- a/src/__TODO/UiGuiIndentServer.cpp +++ b/src/__TODO/UiGuiIndentServer.cpp @@ -72,7 +72,7 @@ void UiGuiIndentServer::startServer() } } - connect(_tcpServer, SIGNAL(newConnection()), this, SLOT(handleNewConnection())); + connect(_tcpServer, TQ_SIGNAL(newConnection()), this, TQ_SLOT(handleNewConnection())); _readyForHandleRequest = true; _blockSize = 0; } @@ -92,9 +92,9 @@ void UiGuiIndentServer::stopServer() void UiGuiIndentServer::handleNewConnection() { TQTcpSocket *clientConnection = _tcpServer->nextPendingConnection(); - connect(clientConnection, SIGNAL(disconnected()), clientConnection, SLOT(deleteLater())); + connect(clientConnection, TQ_SIGNAL(disconnected()), clientConnection, TQ_SLOT(deleteLater())); - connect(clientConnection, SIGNAL(readyRead()), this, SLOT(handleReceivedData())); + connect(clientConnection, TQ_SIGNAL(readyRead()), this, TQ_SLOT(handleReceivedData())); } void UiGuiIndentServer::handleReceivedData() @@ -157,8 +157,8 @@ void UiGuiIndentServer::sendMessage(const TQString &message) out.device()->seek(0); out << (tquint32)(_dataToSend.size() - sizeof(tquint32)); - connect(_currentClientConnection, SIGNAL(bytesWritten(qint64)), this, - SLOT(checkIfReadyForHandleRequest())); + connect(_currentClientConnection, TQ_SIGNAL(bytesWritten(qint64)), this, + TQ_SLOT(checkIfReadyForHandleRequest())); _currentClientConnection->write(_dataToSend); } @@ -168,8 +168,8 @@ void UiGuiIndentServer::checkIfReadyForHandleRequest() { TQString dataToSendStr = _dataToSend.right(_dataToSend.size() - sizeof(tquint32)); tqDebug() << "checkIfReadyForHandleRequest _dataToSend was: " << dataToSendStr; - disconnect(_currentClientConnection, SIGNAL(bytesWritten(qint64)), this, - SLOT(checkIfReadyForHandleRequest())); + disconnect(_currentClientConnection, TQ_SIGNAL(bytesWritten(qint64)), this, + TQ_SLOT(checkIfReadyForHandleRequest())); _readyForHandleRequest = true; } } |