From e8b57c6660961ea14ce7d0d5628b70aadbd64694 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 7 Jan 2024 19:47:15 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- src/knutnet.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/knutnet.cpp') diff --git a/src/knutnet.cpp b/src/knutnet.cpp index f049a52..e857dd4 100644 --- a/src/knutnet.cpp +++ b/src/knutnet.cpp @@ -53,15 +53,15 @@ KNutNet::KNutNet (const TQString upsAddress, const TQString upsName, const unsig m_description = false; // popis neni natazen - description is not loaded m_unConnectTimer = new TQTimer( this ); - connect( m_unConnectTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimerReconnect()) ); + connect( m_unConnectTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimerReconnect()) ); m_error = NoError; m_commandSocket = new TQSocket( this ); - connect( m_commandSocket, TQT_SIGNAL( hostFound()),this, TQT_SLOT( slotHostFound())); - connect( m_commandSocket, TQT_SIGNAL( connected()),this,TQT_SLOT( slotConnected())); - connect( m_commandSocket, TQT_SIGNAL( connectionClosed()),this, TQT_SLOT( slotConnectionClosed())); - connect( m_commandSocket, TQT_SIGNAL( error(int)),this, TQT_SLOT( slotConnectionError(int))); + connect( m_commandSocket, TQ_SIGNAL( hostFound()),this, TQ_SLOT( slotHostFound())); + connect( m_commandSocket, TQ_SIGNAL( connected()),this,TQ_SLOT( slotConnected())); + connect( m_commandSocket, TQ_SIGNAL( connectionClosed()),this, TQ_SLOT( slotConnectionClosed())); + connect( m_commandSocket, TQ_SIGNAL( error(int)),this, TQ_SLOT( slotConnectionError(int))); } @@ -97,7 +97,7 @@ void KNutNet::close (void) { m_commandSocket->close(); // closes the socket if ( m_commandSocket->state() == TQSocket::Closing ) { - connect( m_commandSocket, TQT_SIGNAL(delayedCloseFinished()),this,TQT_SLOT(slotClosed()) ); + connect( m_commandSocket, TQ_SIGNAL(delayedCloseFinished()),this,TQ_SLOT(slotClosed()) ); } else { slotClosed(); @@ -107,7 +107,7 @@ void KNutNet::close (void) { void KNutNet::slotClosed (void) { - disconnect( m_commandSocket,TQT_SIGNAL(delayedCloseFinished()),this, TQT_SLOT(slotClosed()) ); + disconnect( m_commandSocket,TQ_SIGNAL(delayedCloseFinished()),this, TQ_SLOT(slotClosed()) ); m_state = Idle; } -- cgit v1.2.1