summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/network/clientserver/client/client.cpp2
-rw-r--r--examples/network/infoprotocol/infoclient/client.h2
-rw-r--r--examples/network/infoprotocol/infoserver/main.cpp2
-rw-r--r--examples/network/infoprotocol/infoserver/server.cpp4
-rw-r--r--examples/network/infoprotocol/infoserver/server.h6
-rw-r--r--examples/network/infoprotocol/infourlclient/qip.h2
-rw-r--r--examples/network/remotecontrol/ipcserver.cpp6
-rw-r--r--examples/network/remotecontrol/ipcserver.h2
-rw-r--r--examples/network/remotecontrol/remotectrlimpl.cpp2
-rw-r--r--examples/network/remotecontrol/startup.cpp2
10 files changed, 15 insertions, 15 deletions
diff --git a/examples/network/clientserver/client/client.cpp b/examples/network/clientserver/client/client.cpp
index 7d9ba68e6..cda1f571a 100644
--- a/examples/network/clientserver/client/client.cpp
+++ b/examples/network/clientserver/client/client.cpp
@@ -22,7 +22,7 @@ class Client : public TQVBox
{
TQ_OBJECT
public:
- Client( const TQString &host, Q_UINT16 port )
+ Client( const TQString &host, TQ_UINT16 port )
{
// GUI layout
infoText = new TQTextView( this );
diff --git a/examples/network/infoprotocol/infoclient/client.h b/examples/network/infoprotocol/infoclient/client.h
index e25906864..544d28ae7 100644
--- a/examples/network/infoprotocol/infoclient/client.h
+++ b/examples/network/infoprotocol/infoclient/client.h
@@ -18,7 +18,7 @@ class TQLineEdit;
class TQListBox;
class TQLabel;
-static const Q_UINT16 infoPort = 42417;
+static const TQ_UINT16 infoPort = 42417;
class ClientInfo : public ClientInfoBase
{
diff --git a/examples/network/infoprotocol/infoserver/main.cpp b/examples/network/infoprotocol/infoserver/main.cpp
index 0cfcf58c0..ecb2a361f 100644
--- a/examples/network/infoprotocol/infoserver/main.cpp
+++ b/examples/network/infoprotocol/infoserver/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char** argv )
{
TQApplication app( argc, argv );
- Q_UINT16 port = ( argc > 1 ) ? TQString( argv[ 1 ] ).toInt() : infoPort;
+ TQ_UINT16 port = ( argc > 1 ) ? TQString( argv[ 1 ] ).toInt() : infoPort;
ServerInfo info( port, 0, "server info" );
app.setMainWidget( &info );
info.show();
diff --git a/examples/network/infoprotocol/infoserver/server.cpp b/examples/network/infoprotocol/infoserver/server.cpp
index 116ac0cbb..a405fd8ba 100644
--- a/examples/network/infoprotocol/infoserver/server.cpp
+++ b/examples/network/infoprotocol/infoserver/server.cpp
@@ -18,7 +18,7 @@
-ServerInfo::ServerInfo( Q_UINT16 port, TQWidget *parent, const char *name ) :
+ServerInfo::ServerInfo( TQ_UINT16 port, TQWidget *parent, const char *name ) :
ServerInfoBase( parent, name )
{
SimpleServer *server = new SimpleServer( port, this, "simple server" );
@@ -32,7 +32,7 @@ void ServerInfo::newConnect()
}
-SimpleServer::SimpleServer( Q_UINT16 port, TQObject* parent, const char *name ) :
+SimpleServer::SimpleServer( TQ_UINT16 port, TQObject* parent, const char *name ) :
TQServerSocket( port, 1, parent, name )
{
if ( !ok() ) {
diff --git a/examples/network/infoprotocol/infoserver/server.h b/examples/network/infoprotocol/infoserver/server.h
index 33fb67821..637a4996b 100644
--- a/examples/network/infoprotocol/infoserver/server.h
+++ b/examples/network/infoprotocol/infoserver/server.h
@@ -16,7 +16,7 @@
#include "infodata.h"
#include "serverbase.h"
-static const Q_UINT16 infoPort = 42417;
+static const TQ_UINT16 infoPort = 42417;
/*
@@ -27,7 +27,7 @@ class ServerInfo : public ServerInfoBase
{
TQ_OBJECT
public:
- ServerInfo( Q_UINT16 port = infoPort, TQWidget *parent = 0, const char *name = 0 );
+ ServerInfo( TQ_UINT16 port = infoPort, TQWidget *parent = 0, const char *name = 0 );
private slots:
void newConnect();
@@ -38,7 +38,7 @@ class SimpleServer : public TQServerSocket
{
TQ_OBJECT
public:
- SimpleServer( Q_UINT16 port = infoPort, TQObject* parent = 0, const char *name = 0 );
+ SimpleServer( TQ_UINT16 port = infoPort, TQObject* parent = 0, const char *name = 0 );
void newConnection( int socket );
signals:
diff --git a/examples/network/infoprotocol/infourlclient/qip.h b/examples/network/infoprotocol/infourlclient/qip.h
index ee70383d4..c88ed8a0a 100644
--- a/examples/network/infoprotocol/infourlclient/qip.h
+++ b/examples/network/infoprotocol/infourlclient/qip.h
@@ -14,7 +14,7 @@
class TQSocket;
-static const Q_UINT16 infoPort = 42417;
+static const TQ_UINT16 infoPort = 42417;
class Qip : public TQNetworkProtocol
diff --git a/examples/network/remotecontrol/ipcserver.cpp b/examples/network/remotecontrol/ipcserver.cpp
index f7f52ab48..e7cbc2c55 100644
--- a/examples/network/remotecontrol/ipcserver.cpp
+++ b/examples/network/remotecontrol/ipcserver.cpp
@@ -24,7 +24,7 @@ signals:
private slots:
void read()
{
- Q_ULONG bytesAvail = bytesAvailable();
+ TQ_ULONG bytesAvail = bytesAvailable();
for ( ;; ) {
if ( packetSize == 0 ) {
TQDataStream ds( this );
@@ -63,10 +63,10 @@ private slots:
}
private:
- Q_UINT32 packetSize;
+ TQ_UINT32 packetSize;
};
-IpcServer::IpcServer( Q_UINT16 port, TQObject *parent ) :
+IpcServer::IpcServer( TQ_UINT16 port, TQObject *parent ) :
TQServerSocket( 0x7f000001, port, 1, parent )
{
}
diff --git a/examples/network/remotecontrol/ipcserver.h b/examples/network/remotecontrol/ipcserver.h
index b2b17f615..81b6c9c95 100644
--- a/examples/network/remotecontrol/ipcserver.h
+++ b/examples/network/remotecontrol/ipcserver.h
@@ -8,7 +8,7 @@ class IpcServer : public TQServerSocket
TQ_OBJECT
public:
- IpcServer( Q_UINT16 port, TQObject *parent );
+ IpcServer( TQ_UINT16 port, TQObject *parent );
void newConnection( int socket );
diff --git a/examples/network/remotecontrol/remotectrlimpl.cpp b/examples/network/remotecontrol/remotectrlimpl.cpp
index 4859d3b82..ac1f01678 100644
--- a/examples/network/remotecontrol/remotectrlimpl.cpp
+++ b/examples/network/remotecontrol/remotectrlimpl.cpp
@@ -22,7 +22,7 @@ void RemoteCtrlImpl::sendPacket( const TQVariant &v )
varDs << v;
TQDataStream ds( socket );
- ds << (Q_UINT32) ba.size();
+ ds << (TQ_UINT32) ba.size();
socket->writeBlock( ba.data(), ba.size() );
}
diff --git a/examples/network/remotecontrol/startup.cpp b/examples/network/remotecontrol/startup.cpp
index bc16f19ff..11b9d2273 100644
--- a/examples/network/remotecontrol/startup.cpp
+++ b/examples/network/remotecontrol/startup.cpp
@@ -6,7 +6,7 @@
#include <ntqsocket.h>
#include <ntqlabel.h>
-static const Q_UINT16 ipcPort = 54923;
+static const TQ_UINT16 ipcPort = 54923;
StartUp::StartUp()
{