From 397b7afa8e3f32268c4454bf4783ac2a5a799658 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 15 Oct 2024 13:05:33 +0900 Subject: Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tutorial1-04.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/tutorial1-04.html') diff --git a/doc/html/tutorial1-04.html b/doc/html/tutorial1-04.html index 259eb436a..6c0980bfa 100644 --- a/doc/html/tutorial1-04.html +++ b/doc/html/tutorial1-04.html @@ -40,7 +40,7 @@ minimum and maximum sizes of a widget, and introduces widget names. ** ****************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqpushbutton.h> #include <tqfont.h> @@ -62,19 +62,19 @@ public: quit->setGeometry( 62, 40, 75, 30 ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); } int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); MyWidget w; w.setGeometry( 100, 100, 200, 120 ); - a.setMainWidget( &w ); + a.setMainWidget( &w ); w.show(); - return a.exec(); + return a.exec(); } @@ -131,7 +131,7 @@ when you choose to, the child will automatically tell TQt about its imminent death.)

The setGeometry() call does the same as move() and resize() did in the previous chapters. -

        connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
+

        connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
     }
 

Because the MyWidget class doesn't know about the application object, it @@ -144,13 +144,13 @@ so TQt offers an alias, tqApp, for the cases in which a component such as MyWidget needs to talk to the application object.

    int main( int argc, char **argv )
     {
-        TQApplication a( argc, argv );
+        TQApplication a( argc, argv );
 
         MyWidget w;
         w.setGeometry( 100, 100, 200, 120 );
-        a.setMainWidget( &w );
+        a.setMainWidget( &w );
         w.show();
-        return a.exec();
+        return a.exec();
     }
 

Here we instantiate our new child, set it to be the main widget, and -- cgit v1.2.3