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-12.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/html/tutorial1-12.html') diff --git a/doc/html/tutorial1-12.html b/doc/html/tutorial1-12.html index 209210454..799a80b74 100644 --- a/doc/html/tutorial1-12.html +++ b/doc/html/tutorial1-12.html @@ -61,7 +61,7 @@ definition. { TQ_OBJECT public: - LCDRange( TQWidget *parent=0, const char *name=0 ); + LCDRange( TQWidget *parent=0, const char *name=0 ); LCDRange( const char *s, TQWidget *parent=0, const char *name=0 ); @@ -90,7 +90,7 @@ frame.

    #include <ntqlabel.h>
 

Here we include the TQLabel class definition. -

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

    LCDRange::LCDRange( TQWidget *parent, const char *name )
             : TQVBox( parent, name )
     {
         init();
@@ -122,7 +122,7 @@ initialization code.
         connect( slider, TQ_SIGNAL(valueChanged(int)),
                  TQ_SIGNAL(valueChanged(int)) );
 
-        setFocusProxy( slider );
+        setFocusProxy( slider );
     }
 

The setup of lcd and slider is the same as in the previous @@ -195,7 +195,7 @@ repaint() on a hidden widget. TQRegion r( targetRect() ); target = TQPoint( 200 + rand() % 190, 10 + rand() % 255 ); - repaint( r.unite( targetRect() ) ); + repaint( r.unite( targetRect() ) ); }

This private function creates a target center point at a new "random" @@ -310,7 +310,7 @@ you can have really accurate collision detection.

Make a moving target.

Make sure that the target is always created entirely on-screen.

Make sure that the widget cannot be resized so that the target isn't -visible. Hint: TQWidget::setMinimumSize() is your friend. +visible. Hint: TQWidget::setMinimumSize() is your friend.

Not easy; make it possible to have several shots in the air at the same time. Hint: make a Shot object.

You're now ready for Chapter 13. -- cgit v1.2.3