From 0cf411b09cf5d8970b873a338a69eae98d5ce5d8 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 8 Jun 2024 12:56:43 +0900 Subject: Rename text nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/httpd-example.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/httpd-example.html') diff --git a/doc/html/httpd-example.html b/doc/html/httpd-example.html index 32b502475..124439989 100644 --- a/doc/html/httpd-example.html +++ b/doc/html/httpd-example.html @@ -54,10 +54,10 @@ sending the page, it closes the connection. #include <ntqserversocket.h> #include <ntqapplication.h> #include <ntqmainwindow.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqvbox.h> #include <ntqlabel.h> -#include <ntqtextview.h> +#include <tqtextview.h> #include <ntqpushbutton.h> // HttpDaemon is the the class that implements the simple HTTP server. @@ -102,8 +102,8 @@ private slots: if ( socket->canReadLine() ) { TQStringList tokens = TQStringList::split( TQRegExp("[ \r\n][ \r\n]*"), socket->readLine() ); if ( tokens[0] == "GET" ) { - TQTextStream os( socket ); - os.setEncoding( TQTextStream::UnicodeUTF8 ); + TQTextStream os( socket ); + os.setEncoding( TQTextStream::UnicodeUTF8 ); os << "HTTP/1.0 200 Ok\r\n" "Content-Type: text/html; charset=\"utf-8\"\r\n" "\r\n" @@ -139,7 +139,7 @@ public: ).arg( httpd->port() ); TQLabel *lb = new TQLabel( itext, this ); lb->setAlignment( AlignHCenter ); - infoText = new TQTextView( this ); + infoText = new TQTextView( this ); TQPushButton *quit = new TQPushButton( "quit" , this ); connect( httpd, TQ_SIGNAL(newConnect()), TQ_SLOT(newConnect()) ); @@ -155,19 +155,19 @@ public: private slots: void newConnect() { - infoText->append( "New connection" ); + infoText->append( "New connection" ); } void endConnect() { - infoText->append( "Connection closed\n\n" ); + infoText->append( "Connection closed\n\n" ); } void wroteToClient() { - infoText->append( "Wrote to client" ); + infoText->append( "Wrote to client" ); } private: - TQTextView *infoText; + TQTextView *infoText; }; -- cgit v1.2.3