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/tutorial1-02.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/html/tutorial1-02.html') diff --git a/doc/html/tutorial1-02.html b/doc/html/tutorial1-02.html index cf2792e4b..a35de0e75 100644 --- a/doc/html/tutorial1-02.html +++ b/doc/html/tutorial1-02.html @@ -43,7 +43,7 @@ now go on to make the application quit properly when the user tells it to. ****************************************************************/ #include <ntqapplication.h> -#include <ntqpushbutton.h> +#include <tqpushbutton.h> #include <tqfont.h> @@ -51,7 +51,7 @@ int main( int argc, char **argv ) { TQApplication a( argc, argv ); - TQPushButton quit( "Quit", 0 ); + TQPushButton quit( "Quit", 0 ); quit.resize( 75, 30 ); quit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); @@ -72,7 +72,7 @@ int main( int argc, char **argv )

Since this program uses TQFont, it needs to include tqfont.h. TQt's font abstraction is rather different from the horror provided by X, and loading and using fonts has been highly optimized. -

        TQPushButton quit( "Quit", 0 );
+

        TQPushButton quit( "Quit", 0 );
 

This time, the button says "Quit" and that's exactly what the program will do when the user clicks the button. This is not a coincidence. @@ -111,7 +111,7 @@ makefile and build the application.)

Try to resize the window. Press the button. Oops! That connect() would seem to make some difference. -

Are there any other signals in TQPushButton you can connect to quit? +

Are there any other signals in TQPushButton you can connect to quit? Hint: The TQPushButton inherits most of its behavior from TQButton.

You're now ready for Chapter 3.

[Previous tutorial] -- cgit v1.2.3