From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/progressbar-example.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/progressbar-example.html') diff --git a/doc/html/progressbar-example.html b/doc/html/progressbar-example.html index d5ef1c61c..5497aeaa1 100644 --- a/doc/html/progressbar-example.html +++ b/doc/html/progressbar-example.html @@ -112,7 +112,7 @@ protected slots: TQGridLayout* toplayout = new TQGridLayout( layout(), 2, 2, 5); - setRadioButtonExclusive( TRUE ); + setRadioButtonExclusive( true ); // insert three radiobuttons which the user can use // to set the speed of the progress and two pushbuttons @@ -147,7 +147,7 @@ protected slots: connect( &timer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotTimeout() ) ); // Let's start with normal speed... - normal->setChecked( TRUE ); + normal->setChecked( true ); // some contraints @@ -176,9 +176,9 @@ void ProgressBar::slotStart() progress->setTotalSteps( 50 ); // disable the speed-radiobuttons - slow->setEnabled( FALSE ); - normal->setEnabled( FALSE ); - fast->setEnabled( FALSE ); + slow->setEnabled( false ); + normal->setEnabled( false ); + fast->setEnabled( false ); } // If the progress is not running... @@ -209,12 +209,12 @@ void ProgressBar::slotReset() // rename the start/pause/continue button to Start... start->setText( "&Start" ); // ...and enable this button - start->setEnabled( TRUE ); + start->setEnabled( true ); // enable the speed-radiobuttons - slow->setEnabled( TRUE ); - normal->setEnabled( TRUE ); - fast->setEnabled( TRUE ); + slow->setEnabled( true ); + normal->setEnabled( true ); + fast->setEnabled( true ); // reset the progressbar progress->reset(); @@ -237,7 +237,7 @@ void ProgressBar::slotTimeout() // ...rename the start/pause/continue button to Start... start->setText( "&Start" ); // ...and disable it... - start->setEnabled( FALSE ); + start->setEnabled( false ); // ...and return return; } -- cgit v1.2.3