From e6077c30d14e9d662e8843c554db86c0d366d0b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 13:44:12 +0900 Subject: Rename str nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tutorial1-08.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/tutorial1-08.html') diff --git a/doc/html/tutorial1-08.html b/doc/html/tutorial1-08.html index 629ec4818..c276d5411 100644 --- a/doc/html/tutorial1-08.html +++ b/doc/html/tutorial1-08.html @@ -154,7 +154,7 @@ that the angle has changed. The emit keyword is unique to TQt and not regular C++ syntax. In fact, it is a macro.

    void CannonField::paintEvent( TQPaintEvent * )
     {
-        TQString s = "Angle = " + TQString::number( ang );
+        TQString s = "Angle = " + TQString::number( ang );
         TQPainter p( this );
         p.drawText( 200, 200, s );
     }
@@ -164,7 +164,7 @@ argument contains a description of the paint event. T
 contains the region in the widget that must be updated. For the time
 being, we will be lazy and just paint everything.
 

Our code displays the angle value in the widget at a fixed position. -First we create a TQString with some text and the angle; then we create +First we create a TQString with some text and the angle; then we create a TQPainter operating on this widget and use it to paint the string. We'll come back to TQPainter later; it can do a great many things.

t8/main.cpp -- cgit v1.2.3