From fef846914f8db6dc117e206ef913d519bf6bb33e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 29 Jul 2024 12:43:23 +0900 Subject: Rename basic widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/clientserver-example.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/clientserver-example.html') 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 <ntqvbox.h> #include <tqtextview.h> #include <tqlabel.h> -#include <ntqpushbutton.h> +#include <tqpushbutton.h> #include <tqtextstream.h> #include <stdlib.h> @@ -166,7 +166,7 @@ public: TQLabel *lb = new TQLabel( itext, this ); lb->setAlignment( AlignHCenter ); infoText = new TQTextView( this ); - TQPushButton *quit = new TQPushButton( tr("Quit") , this ); + TQPushButton *quit = new TQPushButton( tr("Quit") , this ); connect( server, TQ_SIGNAL(newConnect(ClientSocket*)), TQ_SLOT(newConnect(ClientSocket*)) ); @@ -227,9 +227,9 @@ int main( int argc, char** argv ) #include <ntqvbox.h> #include <ntqhbox.h> #include <tqtextview.h> -#include <ntqlineedit.h> +#include <tqlineedit.h> #include <tqlabel.h> -#include <ntqpushbutton.h> +#include <tqpushbutton.h> #include <tqtextstream.h> @@ -242,10 +242,10 @@ public: // GUI layout infoText = new TQTextView( this ); TQHBox *hb = new TQHBox( this ); - inputText = new TQLineEdit( hb ); - TQPushButton *send = new TQPushButton( tr("Send") , hb ); - TQPushButton *close = new TQPushButton( tr("Close connection") , this ); - TQPushButton *quit = new TQPushButton( tr("Quit") , this ); + inputText = new TQLineEdit( hb ); + TQPushButton *send = new TQPushButton( tr("Send") , hb ); + TQPushButton *close = new TQPushButton( tr("Close connection") , this ); + TQPushButton *quit = new TQPushButton( tr("Quit") , this ); connect( send, TQ_SIGNAL(clicked()), TQ_SLOT(sendToServer()) ); connect( close, TQ_SIGNAL(clicked()), TQ_SLOT(closeConnection()) ); @@ -289,8 +289,8 @@ private slots: { // write to the server TQTextStream os(socket); - os << inputText->text() << "\n"; - inputText->setText( "" ); + os << inputText->text() << "\n"; + inputText->setText( "" ); } void socketReadyRead() @@ -324,7 +324,7 @@ private slots: private: TQSocket *socket; TQTextView *infoText; - TQLineEdit *inputText; + TQLineEdit *inputText; }; -- cgit v1.2.3