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-06.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/tutorial1-06.html') diff --git a/doc/html/tutorial1-06.html b/doc/html/tutorial1-06.html index f8fcf8fb..a2e5c23a 100644 --- a/doc/html/tutorial1-06.html +++ b/doc/html/tutorial1-06.html @@ -48,17 +48,17 @@ widget as a child widget. #include <tqslider.h> #include <tqlcdnumber.h> #include <tqfont.h> -#include <ntqvbox.h> +#include <tqvbox.h> #include <tqgrid.h> -class LCDRange : public TQVBox +class LCDRange : public TQVBox { public: LCDRange( TQWidget *parent=0, const char *name=0 ); }; LCDRange::LCDRange( TQWidget *parent, const char *name ) - : TQVBox( parent, name ) + : TQVBox( parent, name ) { TQLCDNumber *lcd = new TQLCDNumber( 2, this, "lcd" ); TQSlider * slider = new TQSlider( Horizontal, this, "slider" ); @@ -67,7 +67,7 @@ public: connect( slider, TQ_SIGNAL(valueChanged(int)), lcd, TQ_SLOT(display(int)) ); } -class MyWidget : public TQVBox +class MyWidget : public TQVBox { public: MyWidget( TQWidget *parent=0, const char *name=0 ); @@ -75,7 +75,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 ) ); @@ -104,7 +104,7 @@ int main( int argc, char **argv )

Line-by-line Walkthrough

-

    class LCDRange : public TQVBox
+

    class LCDRange : public TQVBox
     {
     public:
         LCDRange( TQWidget *parent=0, const char *name=0 );
@@ -113,7 +113,7 @@ int main( int argc, char **argv )
 

The LCDRange widget is a widget without any API. It just has a constructor. This sort of widget is not very useful, so we'll add some API later.

    LCDRange::LCDRange( TQWidget *parent, const char *name )
-            : TQVBox( parent, name )
+            : TQVBox( parent, name )
     {
         TQLCDNumber *lcd  = new TQLCDNumber( 2, this, "lcd"  );
         TQSlider * slider = new TQSlider( Horizontal, this, "slider" );
@@ -126,7 +126,7 @@ constructor. This sort of widget is not very useful, so we'll add some API later
 MyWidget constructor in Chapter 5.
 The only differences are that the button is left out and the class
 is renamed.
-

    class MyWidget : public TQVBox
+

    class MyWidget : public TQVBox
     {
     public:
         MyWidget( TQWidget *parent=0, const char *name=0 );
@@ -134,7 +134,7 @@ is renamed.
 

MyWidget, too, contains no API except a constructor.

    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 ) );
-- 
cgit v1.2.1