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-04.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/html/tutorial1-04.html') diff --git a/doc/html/tutorial1-04.html b/doc/html/tutorial1-04.html index c1d8ea2c4..2dffeb4e3 100644 --- a/doc/html/tutorial1-04.html +++ b/doc/html/tutorial1-04.html @@ -42,7 +42,7 @@ minimum and maximum sizes of a widget, and introduces widget names. ****************************************************************/ #include <ntqapplication.h> -#include <ntqpushbutton.h> +#include <tqpushbutton.h> #include <tqfont.h> @@ -59,7 +59,7 @@ public: setMinimumSize( 200, 120 ); setMaximumSize( 200, 120 ); - TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); + TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); quit->setGeometry( 62, 40, 75, 30 ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); @@ -116,7 +116,7 @@ constructor.

Because this widget doesn't know how to handle resizing, we fix its size by setting the minimum and maximum to be equal. In the next chapter we will show how a widget can respond to resize event from the user. -

        TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
+

        TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
         quit->setGeometry( 62, 40, 75, 30 );
         quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
 
@@ -166,7 +166,7 @@ makefile and build the application.)

Exercises

Try to create another MyWidget object in main(). What happens? -

Try to add more buttons or put in widgets other than TQPushButton. +

Try to add more buttons or put in widgets other than TQPushButton.

You're now ready for Chapter 5.

[Previous tutorial] [Next tutorial] -- cgit v1.2.3