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/tutorial2-08.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/html/tutorial2-08.html') diff --git a/doc/html/tutorial2-08.html b/doc/html/tutorial2-08.html index 3287a1f0b..05fb03c07 100644 --- a/doc/html/tutorial2-08.html +++ b/doc/html/tutorial2-08.html @@ -45,7 +45,7 @@ enter label text and choose a label color for each label. TQ_OBJECT public: SetDataForm( ElementVector *elements, int decimalPlaces, - TQWidget *parent = 0, const char *name = "set data form", + TQWidget *parent = 0, const char *name = "set data form", bool modal = TRUE, WFlags f = 0 ); ~SetDataForm() {} @@ -88,7 +88,7 @@ TQt supports. We'll use these in the pattern combobox.

The Constructor

    SetDataForm::SetDataForm( ElementVector *elements, int decimalPlaces,
-                              TQWidget* parent,  const char* name,
+                              TQWidget* parent,  const char* name,
                               bool modal, WFlags f )
         : TQDialog( parent, name, modal, f )
 
@@ -100,8 +100,8 @@ TQt supports. We'll use these in the pattern combobox.
 elements vector pointer and the number of decimal places to display to
 member variables so that they are accessible by all SetDataForm's
 member functions.
-

        setCaption( "Chart -- Set Data" );
-        resize( 540, 440 );
+

        setCaption( "Chart -- Set Data" );
+        resize( 540, 440 );
 

We set a caption for the dialog and resize it.

        tableButtonBox = new TQVBoxLayout( this, 11, 6, "table button box layout" );
@@ -141,7 +141,7 @@ column and finally add the table to the tableButtonBox layout.
 

We create a horizontal box layout to hold the buttons.

        colorPushButton = new TQPushButton( this, "color button" );
         colorPushButton->setText( "&Color..." );
-        colorPushButton->setEnabled( FALSE );
+        colorPushButton->setEnabled( FALSE );
         buttonBox->addWidget( colorPushButton );
 

We create a color button and add it to the buttonBox layout. We @@ -255,7 +255,7 @@ the same way as we set the value color.

    void SetDataForm::currentChanged( int, int col )
     {
-        colorPushButton->setEnabled( col == 1 || col == 4 );
+        colorPushButton->setEnabled( col == 1 || col == 4 );
     }
 

As the user navigates through the table currentChanged() signals are @@ -280,7 +280,7 @@ number of decimal places, or indicate that it is invalid.

    void SetDataForm::setColor()
     {
         setColor( table->currentRow(), table->currentColumn() );
-        table->setFocus();
+        table->setFocus();
     }
 

If the user presses the Color button we call the other setColor() -- cgit v1.2.3