summaryrefslogtreecommitdiffstats
path: root/examples/network/networkprotocol
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
commitfb401a891f1b426e9419c0cb16403df407138611 (patch)
tree045b51949b3140039e37d898d8b0513016a86bea /examples/network/networkprotocol
parenta9d178f1000475ba1727ffe123a2c54585488c01 (diff)
downloadtqt3-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/networkprotocol')
-rw-r--r--examples/network/networkprotocol/nntp.cpp20
-rw-r--r--examples/network/networkprotocol/view.cpp8
2 files changed, 14 insertions, 14 deletions
diff --git a/examples/network/networkprotocol/nntp.cpp b/examples/network/networkprotocol/nntp.cpp
index 1fe31dda4..833718ada 100644
--- a/examples/network/networkprotocol/nntp.cpp
+++ b/examples/network/networkprotocol/nntp.cpp
@@ -20,16 +20,16 @@ Nntp::Nntp()
{
// create the command socket and connect to its signals
commandSocket = new TQSocket( this );
- connect( commandSocket, SIGNAL( hostFound() ),
- this, SLOT( hostFound() ) );
- connect( commandSocket, SIGNAL( connected() ),
- this, SLOT( connected() ) );
- connect( commandSocket, SIGNAL( connectionClosed() ),
- this, SLOT( closed() ) );
- connect( commandSocket, SIGNAL( readyRead() ),
- this, SLOT( readyRead() ) );
- connect( commandSocket, SIGNAL( error( int ) ),
- this, SLOT( error( int ) ) );
+ connect( commandSocket, TQ_SIGNAL( hostFound() ),
+ this, TQ_SLOT( hostFound() ) );
+ connect( commandSocket, TQ_SIGNAL( connected() ),
+ this, TQ_SLOT( connected() ) );
+ connect( commandSocket, TQ_SIGNAL( connectionClosed() ),
+ this, TQ_SLOT( closed() ) );
+ connect( commandSocket, TQ_SIGNAL( readyRead() ),
+ this, TQ_SLOT( readyRead() ) );
+ connect( commandSocket, TQ_SIGNAL( error( int ) ),
+ this, TQ_SLOT( error( int ) ) );
}
Nntp::~Nntp()
diff --git a/examples/network/networkprotocol/view.cpp b/examples/network/networkprotocol/view.cpp
index 3c24e03d9..070b8a7cd 100644
--- a/examples/network/networkprotocol/view.cpp
+++ b/examples/network/networkprotocol/view.cpp
@@ -40,15 +40,15 @@ View::View()
"for downloading a news article start with an url like "
"<u>nntp://news.tu-graz.ac.at</u> " ) );
TQPushButton *b = new TQPushButton( tr( "Open a file..." ), this );
- connect( b, SIGNAL( clicked() ),
- this, SLOT( downloadFile() ) );
+ connect( b, TQ_SIGNAL( clicked() ),
+ this, TQ_SLOT( downloadFile() ) );
fileView = new TQMultiLineEdit( this );
fileView->setReadOnly( TRUE );
// if new data comes in, display it
- connect( &op, SIGNAL( data( const TQByteArray &, TQNetworkOperation * ) ),
- this, SLOT( newData( const TQByteArray & ) ) );
+ connect( &op, TQ_SIGNAL( data( const TQByteArray &, TQNetworkOperation * ) ),
+ this, TQ_SLOT( newData( const TQByteArray & ) ) );
}
void View::downloadFile()