From 0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 24 Jul 2024 19:37:05 +0900 Subject: Rename text class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tutorial1-12.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/tutorial1-12.html') diff --git a/doc/html/tutorial1-12.html b/doc/html/tutorial1-12.html index 3a90243c8..ef3cabd86 100644 --- a/doc/html/tutorial1-12.html +++ b/doc/html/tutorial1-12.html @@ -55,7 +55,7 @@ implementation.

    class TQLabel;
 
-

We name declare TQLabel because we want to use a pointer to it in the class +

We name declare TQLabel because we want to use a pointer to it in the class definition.

    class LCDRange : public TQVBox
     {
@@ -78,7 +78,7 @@ the parent and name.
 

Because we now have two constructors, we have chosen to put the common initialization in the private init() function. -

        TQLabel      *label;
+

        TQLabel      *label;
 

We also have a new private variable: a TQLabel. TQLabel is one of TQt's standard widgets and can show a text or a pixmap with or without a @@ -87,9 +87,9 @@ frame.

-

    #include <ntqlabel.h>
+

    #include <tqlabel.h>
 
-

Here we include the TQLabel class definition. +

Here we include the TQLabel class definition.

    LCDRange::LCDRange( TQWidget *parent, const char *name )
             : TQVBox( parent, name )
     {
@@ -114,8 +114,8 @@ initialization code.
         slider->setRange( 0, 99 );
         slider->setValue( 0 );
 
-        label = new TQLabel( " ", this, "label"  );
-        label->setAlignment( AlignCenter );
+        label = new TQLabel( " ", this, "label"  );
+        label->setAlignment( AlignCenter );
 
         connect( slider, TQ_SIGNAL(valueChanged(int)),
                  lcd, TQ_SLOT(display(int)) );
@@ -126,18 +126,18 @@ initialization code.
     }
 

The setup of lcd and slider is the same as in the previous -chapter. Next we create a TQLabel and tell it to align the contents +chapter. Next we create a TQLabel and tell it to align the contents centered (both vertically and horizontally). The connect() statements have also been taken from the previous chapter.

    const char *LCDRange::text() const
     {
-        return label->text();
+        return label->text();
     }
 

This function returns the label text.

    void LCDRange::setText( const char *s )
     {
-        label->setText( s );
+        label->setText( s );
     }
 

This function sets the label text. -- cgit v1.2.3