summaryrefslogtreecommitdiffstats
path: root/examples/network/remotecontrol
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/remotecontrol
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/remotecontrol')
-rw-r--r--examples/network/remotecontrol/ipcserver.cpp10
-rw-r--r--examples/network/remotecontrol/main.cpp2
-rw-r--r--examples/network/remotecontrol/remotectrlimpl.cpp6
-rw-r--r--examples/network/remotecontrol/startup.cpp12
4 files changed, 15 insertions, 15 deletions
diff --git a/examples/network/remotecontrol/ipcserver.cpp b/examples/network/remotecontrol/ipcserver.cpp
index e7cbc2c55..4bd7b6423 100644
--- a/examples/network/remotecontrol/ipcserver.cpp
+++ b/examples/network/remotecontrol/ipcserver.cpp
@@ -14,7 +14,7 @@ public:
IpcSocket( TQObject *parent) : TQSocket( parent )
{
packetSize = 0;
- connect( this, SIGNAL(readyRead()), SLOT(read()) );
+ connect( this, TQ_SIGNAL(readyRead()), TQ_SLOT(read()) );
}
signals:
@@ -75,10 +75,10 @@ void IpcServer::newConnection( int socket )
{
IpcSocket *s = new IpcSocket( this );
s->setSocket( socket );
- connect( s, SIGNAL(receivedText(const TQString&)),
- SIGNAL(receivedText(const TQString&)) );
- connect( s, SIGNAL(receivedPixmap(const TQPixmap&)),
- SIGNAL(receivedPixmap(const TQPixmap&)) );
+ connect( s, TQ_SIGNAL(receivedText(const TQString&)),
+ TQ_SIGNAL(receivedText(const TQString&)) );
+ connect( s, TQ_SIGNAL(receivedPixmap(const TQPixmap&)),
+ TQ_SIGNAL(receivedPixmap(const TQPixmap&)) );
}
#include "ipcserver.moc"
diff --git a/examples/network/remotecontrol/main.cpp b/examples/network/remotecontrol/main.cpp
index 76072217c..914d56855 100644
--- a/examples/network/remotecontrol/main.cpp
+++ b/examples/network/remotecontrol/main.cpp
@@ -6,6 +6,6 @@ int main( int argc, char **argv )
{
TQApplication a( argc, argv );
StartUp s;
- TQObject::connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
+ TQObject::connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );
return a.exec();
}
diff --git a/examples/network/remotecontrol/remotectrlimpl.cpp b/examples/network/remotecontrol/remotectrlimpl.cpp
index ac1f01678..68e0a3c7a 100644
--- a/examples/network/remotecontrol/remotectrlimpl.cpp
+++ b/examples/network/remotecontrol/remotectrlimpl.cpp
@@ -10,9 +10,9 @@
RemoteCtrlImpl::RemoteCtrlImpl( TQSocket *s )
{
socket = s;
- connect( sImage, SIGNAL(clicked()), SLOT(sendImage()) );
- connect( sText, SIGNAL(clicked()), SLOT(sendText()) );
- connect( sPalette, SIGNAL(clicked()), SLOT(sendPalette()) );
+ connect( sImage, TQ_SIGNAL(clicked()), TQ_SLOT(sendImage()) );
+ connect( sText, TQ_SIGNAL(clicked()), TQ_SLOT(sendText()) );
+ connect( sPalette, TQ_SIGNAL(clicked()), TQ_SLOT(sendPalette()) );
}
void RemoteCtrlImpl::sendPacket( const TQVariant &v )
diff --git a/examples/network/remotecontrol/startup.cpp b/examples/network/remotecontrol/startup.cpp
index 11b9d2273..95e33e260 100644
--- a/examples/network/remotecontrol/startup.cpp
+++ b/examples/network/remotecontrol/startup.cpp
@@ -14,8 +14,8 @@ StartUp::StartUp()
mainDialog = 0;
socket = new TQSocket( this );
- connect( socket, SIGNAL(connected()), SLOT(startRemoteCtrl()) );
- connect( socket, SIGNAL(error(int)), SLOT(startMainDialog()) );
+ connect( socket, TQ_SIGNAL(connected()), TQ_SLOT(startRemoteCtrl()) );
+ connect( socket, TQ_SIGNAL(error(int)), TQ_SLOT(startMainDialog()) );
socket->connectToHost( "localhost", ipcPort );
}
@@ -38,8 +38,8 @@ void StartUp::startMainDialog()
IpcServer *server = new IpcServer( ipcPort, this );
- connect( server, SIGNAL(receivedText(const TQString&)),
- mainDialog->description, SLOT(setText(const TQString&)) );
- connect( server, SIGNAL(receivedPixmap(const TQPixmap&)),
- mainDialog->image, SLOT(setPixmap(const TQPixmap&)) );
+ connect( server, TQ_SIGNAL(receivedText(const TQString&)),
+ mainDialog->description, TQ_SLOT(setText(const TQString&)) );
+ connect( server, TQ_SIGNAL(receivedPixmap(const TQPixmap&)),
+ mainDialog->image, TQ_SLOT(setPixmap(const TQPixmap&)) );
}