diff options
Diffstat (limited to 'doc/html/clientserver-example.html')
-rw-r--r-- | doc/html/clientserver-example.html | 22 |
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 <<a href="qvbox-h.html">ntqvbox.h</a>> #include <<a href="tqtextview-h.html">tqtextview.h</a>> #include <<a href="tqlabel-h.html">tqlabel.h</a>> -#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> #include <<a href="tqtextstream-h.html">tqtextstream.h</a>> #include <stdlib.h> @@ -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-><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 <<a href="qvbox-h.html">ntqvbox.h</a>> #include <<a href="qhbox-h.html">ntqhbox.h</a>> #include <<a href="tqtextview-h.html">tqtextview.h</a>> -#include <<a href="qlineedit-h.html">ntqlineedit.h</a>> +#include <<a href="tqlineedit-h.html">tqlineedit.h</a>> #include <<a href="tqlabel-h.html">tqlabel.h</a>> -#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> #include <<a href="tqtextstream-h.html">tqtextstream.h</a>> @@ -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 << inputText-><a href="ntqlineedit.html#text">text</a>() << "\n"; -<a name="x793"></a> inputText-><a href="ntqlineedit.html#setText">setText</a>( "" ); +<a name="x794"></a> os << inputText-><a href="tqlineedit.html#text">text</a>() << "\n"; +<a name="x793"></a> inputText-><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; }; |