summaryrefslogtreecommitdiffstats
path: root/doc/html/clientserver-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/clientserver-example.html')
-rw-r--r--doc/html/clientserver-example.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/clientserver-example.html b/doc/html/clientserver-example.html
index 01b0c33bd..18d58fa49 100644
--- a/doc/html/clientserver-example.html
+++ b/doc/html/clientserver-example.html
@@ -61,7 +61,7 @@ specified. You can send single lines to the server.
#include &lt;<a href="qvbox-h.html">ntqvbox.h</a>&gt;
#include &lt;<a href="tqtextview-h.html">tqtextview.h</a>&gt;
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
-#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
+#include &lt;<a href="tqpushbutton-h.html">tqpushbutton.h</a>&gt;
#include &lt;<a href="tqtextstream-h.html">tqtextstream.h</a>&gt;
#include &lt;stdlib.h&gt;
@@ -166,7 +166,7 @@ public:
<a href="tqlabel.html">TQLabel</a> *lb = new <a href="tqlabel.html">TQLabel</a>( itext, this );
<a name="x784"></a> lb-&gt;<a href="tqlabel.html#setAlignment">setAlignment</a>( AlignHCenter );
infoText = new <a href="tqtextview.html">TQTextView</a>( this );
- <a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( tr("Quit") , this );
+ <a href="tqpushbutton.html">TQPushButton</a> *quit = new <a href="tqpushbutton.html">TQPushButton</a>( tr("Quit") , this );
connect( server, TQ_SIGNAL(newConnect(ClientSocket*)),
TQ_SLOT(newConnect(ClientSocket*)) );
@@ -227,9 +227,9 @@ int main( int argc, char** argv )
#include &lt;<a href="qvbox-h.html">ntqvbox.h</a>&gt;
#include &lt;<a href="qhbox-h.html">ntqhbox.h</a>&gt;
#include &lt;<a href="tqtextview-h.html">tqtextview.h</a>&gt;
-#include &lt;<a href="qlineedit-h.html">ntqlineedit.h</a>&gt;
+#include &lt;<a href="tqlineedit-h.html">tqlineedit.h</a>&gt;
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
-#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
+#include &lt;<a href="tqpushbutton-h.html">tqpushbutton.h</a>&gt;
#include &lt;<a href="tqtextstream-h.html">tqtextstream.h</a>&gt;
@@ -242,10 +242,10 @@ public:
// GUI layout
infoText = new <a href="tqtextview.html">TQTextView</a>( this );
<a href="ntqhbox.html">TQHBox</a> *hb = new <a href="ntqhbox.html">TQHBox</a>( this );
- inputText = new <a href="ntqlineedit.html">TQLineEdit</a>( hb );
- <a href="ntqpushbutton.html">TQPushButton</a> *send = new <a href="ntqpushbutton.html">TQPushButton</a>( tr("Send") , hb );
- <a href="ntqpushbutton.html">TQPushButton</a> *close = new <a href="ntqpushbutton.html">TQPushButton</a>( tr("Close connection") , this );
- <a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( tr("Quit") , this );
+ inputText = new <a href="tqlineedit.html">TQLineEdit</a>( hb );
+ <a href="tqpushbutton.html">TQPushButton</a> *send = new <a href="tqpushbutton.html">TQPushButton</a>( tr("Send") , hb );
+ <a href="tqpushbutton.html">TQPushButton</a> *close = new <a href="tqpushbutton.html">TQPushButton</a>( tr("Close connection") , this );
+ <a href="tqpushbutton.html">TQPushButton</a> *quit = new <a href="tqpushbutton.html">TQPushButton</a>( tr("Quit") , this );
<a name="x792"></a> connect( send, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), TQ_SLOT(sendToServer()) );
connect( close, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), TQ_SLOT(closeConnection()) );
@@ -289,8 +289,8 @@ private slots:
{
// write to the server
<a href="tqtextstream.html">TQTextStream</a> os(socket);
-<a name="x794"></a> os &lt;&lt; inputText-&gt;<a href="ntqlineedit.html#text">text</a>() &lt;&lt; "\n";
-<a name="x793"></a> inputText-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
+<a name="x794"></a> os &lt;&lt; inputText-&gt;<a href="tqlineedit.html#text">text</a>() &lt;&lt; "\n";
+<a name="x793"></a> inputText-&gt;<a href="tqlineedit.html#setText">setText</a>( "" );
}
void socketReadyRead()
@@ -324,7 +324,7 @@ private slots:
private:
<a href="tqsocket.html">TQSocket</a> *socket;
<a href="tqtextview.html">TQTextView</a> *infoText;
- <a href="ntqlineedit.html">TQLineEdit</a> *inputText;
+ <a href="tqlineedit.html">TQLineEdit</a> *inputText;
};