diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
commit | fb401a891f1b426e9419c0cb16403df407138611 (patch) | |
tree | 045b51949b3140039e37d898d8b0513016a86bea /examples/network/clientserver/server | |
parent | a9d178f1000475ba1727ffe123a2c54585488c01 (diff) | |
download | tqt3-fb401a891f1b426e9419c0cb16403df407138611.tar.gz tqt3-fb401a891f1b426e9419c0cb16403df407138611.zip |
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/network/clientserver/server')
-rw-r--r-- | examples/network/clientserver/server/server.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/network/clientserver/server/server.cpp b/examples/network/clientserver/server/server.cpp index e2b04e4a8..3d974cb50 100644 --- a/examples/network/clientserver/server/server.cpp +++ b/examples/network/clientserver/server/server.cpp @@ -32,10 +32,10 @@ public: TQSocket( parent, name ) { line = 0; - connect( this, SIGNAL(readyRead()), - SLOT(readClient()) ); - connect( this, SIGNAL(connectionClosed()), - SLOT(deleteLater()) ); + connect( this, TQ_SIGNAL(readyRead()), + TQ_SLOT(readClient()) ); + connect( this, TQ_SIGNAL(connectionClosed()), + TQ_SLOT(deleteLater()) ); setSocket( sock ); } @@ -120,10 +120,10 @@ public: infoText = new TQTextView( this ); TQPushButton *quit = new TQPushButton( tr("Quit") , this ); - connect( server, SIGNAL(newConnect(ClientSocket*)), - SLOT(newConnect(ClientSocket*)) ); - connect( quit, SIGNAL(clicked()), tqApp, - SLOT(quit()) ); + connect( server, TQ_SIGNAL(newConnect(ClientSocket*)), + TQ_SLOT(newConnect(ClientSocket*)) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, + TQ_SLOT(quit()) ); } ~ServerInfo() @@ -134,10 +134,10 @@ private slots: void newConnect( ClientSocket *s ) { infoText->append( tr("New connection\n") ); - connect( s, SIGNAL(logText(const TQString&)), - infoText, SLOT(append(const TQString&)) ); - connect( s, SIGNAL(connectionClosed()), - SLOT(connectionClosed()) ); + connect( s, TQ_SIGNAL(logText(const TQString&)), + infoText, TQ_SLOT(append(const TQString&)) ); + connect( s, TQ_SIGNAL(connectionClosed()), + TQ_SLOT(connectionClosed()) ); } void connectionClosed() |