From 82ecd83484c9fa1ede059986ab771e74e33e68ef Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 16 Aug 2024 19:11:00 +0900 Subject: Rename layout nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tutorial1-05.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/html/tutorial1-05.html') diff --git a/doc/html/tutorial1-05.html b/doc/html/tutorial1-05.html index b2aca825a..dcf6cf7be 100644 --- a/doc/html/tutorial1-05.html +++ b/doc/html/tutorial1-05.html @@ -47,9 +47,9 @@ by using signals and slots, and how to handle resize events. #include <tqlcdnumber.h> #include <tqfont.h> -#include <ntqvbox.h> +#include <tqvbox.h> -class MyWidget : public TQVBox +class MyWidget : public TQVBox { public: MyWidget( TQWidget *parent=0, const char *name=0 ); @@ -57,7 +57,7 @@ public: MyWidget::MyWidget( TQWidget *parent, const char *name ) - : TQVBox( parent, name ) + : TQVBox( parent, name ) { TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); @@ -94,12 +94,12 @@ int main( int argc, char **argv ) #include <tqlcdnumber.h> #include <tqfont.h> - #include <ntqvbox.h> + #include <tqvbox.h>

Three new include files are shown here. tqslider.h and tqlcdnumber.h are there -because we use two new widgets, TQSlider and TQLCDNumber. ntqvbox.h is +because we use two new widgets, TQSlider and TQLCDNumber. tqvbox.h is here because we use TQt's automatic layout support. -

    class MyWidget : public TQVBox
+

    class MyWidget : public TQVBox
     {
     public:
         MyWidget( TQWidget *parent=0, const char *name=0 );
@@ -107,10 +107,10 @@ here because we use TQt's automatic layout support.
 

    MyWidget::MyWidget( TQWidget *parent, const char *name )
-            : TQVBox( parent, name )
+            : TQVBox( parent, name )
     {
 
-

MyWidget is now derived from TQVBox instead of TQWidget. That way we use +

MyWidget is now derived from TQVBox instead of TQWidget. That way we use the layout of the TQVBox (which places all of its children vertically inside itself). Resizes are now handled automatically by the TQVBox and therefore by MyWidget, too. -- cgit v1.2.3