From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/tutorial1-06.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/tutorial1-06.html') diff --git a/doc/html/tutorial1-06.html b/doc/html/tutorial1-06.html index 3d2006908..f867e9943 100644 --- a/doc/html/tutorial1-06.html +++ b/doc/html/tutorial1-06.html @@ -54,10 +54,10 @@ widget as a child widget. class LCDRange : public TQVBox { public: - LCDRange( TQWidget *parent=0, const char *name=0 ); + LCDRange( TQWidget *parent=0, const char *name=0 ); }; -LCDRange::LCDRange( TQWidget *parent, const char *name ) +LCDRange::LCDRange( TQWidget *parent, const char *name ) : TQVBox( parent, name ) { TQLCDNumber *lcd = new TQLCDNumber( 2, this, "lcd" ); @@ -70,15 +70,15 @@ public: class MyWidget : public TQVBox { public: - MyWidget( TQWidget *parent=0, const char *name=0 ); + MyWidget( TQWidget *parent=0, const char *name=0 ); }; -MyWidget::MyWidget( TQWidget *parent, const char *name ) +MyWidget::MyWidget( TQWidget *parent, const char *name ) : TQVBox( parent, name ) { TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); - quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); @@ -95,7 +95,7 @@ int main( int argc, char **argv ) MyWidget w; a.setMainWidget( &w ); - w.show(); + w.show(); return a.exec(); } @@ -107,12 +107,12 @@ int main( int argc, char **argv )

    class LCDRange : public TQVBox
     {
     public:
-        LCDRange( TQWidget *parent=0, const char *name=0 );
+        LCDRange( TQWidget *parent=0, const char *name=0 );
     };
 

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 )
+

    LCDRange::LCDRange( TQWidget *parent, const char *name )
             : TQVBox( parent, name )
     {
         TQLCDNumber *lcd  = new TQLCDNumber( 2, this, "lcd"  );
@@ -129,15 +129,15 @@ is renamed.
 

    class MyWidget : public TQVBox
     {
     public:
-        MyWidget( TQWidget *parent=0, const char *name=0 );
+        MyWidget( TQWidget *parent=0, const char *name=0 );
     };
 

MyWidget, too, contains no API except a constructor. -

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

    MyWidget::MyWidget( TQWidget *parent, const char *name )
             : TQVBox( parent, name )
     {
         TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
-        quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
+        quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
 
         connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
 
-- cgit v1.2.3