From 35ced32e331ee29fda1642616c803637952f5b22 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 30 May 2025 14:27:29 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 1 Signed-off-by: Michele Calgaro (cherry picked from commit a7f1e6e2552d9cdbb3d76bff089db522248b9a24) --- doc/html/tutorial2-08.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/html/tutorial2-08.html') diff --git a/doc/html/tutorial2-08.html b/doc/html/tutorial2-08.html index 315b025ca..ef4dca343 100644 --- a/doc/html/tutorial2-08.html +++ b/doc/html/tutorial2-08.html @@ -46,7 +46,7 @@ enter label text and choose a label color for each label. public: SetDataForm( ElementVector *elements, int decimalPlaces, TQWidget *parent = 0, const char *name = "set data form", - bool modal = TRUE, WFlags f = 0 ); + bool modal = true, WFlags f = 0 ); ~SetDataForm() {} public slots: @@ -112,9 +112,9 @@ will be grouped together vertically using the tableButtonBox layout.

        table = new TQTable( this, "data table" );
         table->setNumCols( 5 );
         table->setNumRows( ChartForm::MAX_ELEMENTS );
-        table->setColumnReadOnly( 1, TRUE );
-        table->setColumnReadOnly( 2, TRUE );
-        table->setColumnReadOnly( 4, TRUE );
+        table->setColumnReadOnly( 1, true );
+        table->setColumnReadOnly( 2, true );
+        table->setColumnReadOnly( 4, true );
         table->setColumnWidth( 0, 80 );
         table->setColumnWidth( 1, 60 ); // Columns 1 and 4 must be equal
         table->setColumnWidth( 2, 60 );
@@ -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 @@ -155,7 +155,7 @@ on a color cell. buttons we next create a spacer and add that to the buttonBox layout.

        okPushButton = new TQPushButton( this, "ok button" );
         okPushButton->setText( "OK" );
-        okPushButton->setDefault( TRUE );
+        okPushButton->setDefault( true );
         buttonBox->addWidget( okPushButton );
 
         cancelPushButton = new TQPushButton( this, "cancel button" );
-- 
cgit v1.2.3