From a30f5359f03c3017fa19a6770fab32d25d22cb87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 15 Jul 2024 19:08:22 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 1) Signed-off-by: Michele Calgaro --- doc/html/tutorial1-02.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/html/tutorial1-02.html') diff --git a/doc/html/tutorial1-02.html b/doc/html/tutorial1-02.html index aaf95ee6b..cf2792e4b 100644 --- a/doc/html/tutorial1-02.html +++ b/doc/html/tutorial1-02.html @@ -44,7 +44,7 @@ now go on to make the application quit properly when the user tells it to. #include <ntqapplication.h> #include <ntqpushbutton.h> -#include <ntqfont.h> +#include <tqfont.h> int main( int argc, char **argv ) @@ -67,9 +67,9 @@ int main( int argc, char **argv )

Line-by-line Walkthrough

-

    #include <ntqfont.h>
+

    #include <tqfont.h>
 
-

Since this program uses TQFont, it needs to include ntqfont.h. TQt's font +

Since this program uses TQFont, it needs to include tqfont.h. TQt's font abstraction is rather different from the horror provided by X, and loading and using fonts has been highly optimized.

        TQPushButton quit( "Quit", 0 );
@@ -80,7 +80,7 @@ We still pass 0 as the parent, since the button is a top-level window.
 

        quit.resize( 75, 30 );
 

We've chosen another size for the button since the text is a bit -shorter than "Hello world!". We could also have used TQFontMetrics +shorter than "Hello world!". We could also have used TQFontMetrics to set right size.

        quit.setFont( TQFont( "Times", 18, TQFont::Bold ) );
 
-- cgit v1.2.1