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/helpviewer-example.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'doc/html/helpviewer-example.html') diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html index 895524ec5..407678f5b 100644 --- a/doc/html/helpviewer-example.html +++ b/doc/html/helpviewer-example.html @@ -217,8 +217,8 @@ private: menuBar()->insertSeparator(); menuBar()->insertItem( tr("&Help"), help ); - menuBar()->setItemEnabled( forwardId, FALSE); - menuBar()->setItemEnabled( backwardId, FALSE); + menuBar()->setItemEnabled( forwardId, false); + menuBar()->setItemEnabled( backwardId, false); connect( browser, TQ_SIGNAL( backwardAvailable( bool ) ), this, TQ_SLOT( setBackwardAvailable( bool ) ) ); connect( browser, TQ_SIGNAL( forwardAvailable( bool ) ), @@ -231,21 +231,21 @@ private: button = new TQToolButton( icon_back, tr("Backward"), "", browser, TQ_SLOT(backward()), toolbar ); connect( browser, TQ_SIGNAL( backwardAvailable(bool) ), button, TQ_SLOT( setEnabled(bool) ) ); - button->setEnabled( FALSE ); + button->setEnabled( false ); button = new TQToolButton( icon_forward, tr("Forward"), "", browser, TQ_SLOT(forward()), toolbar ); connect( browser, TQ_SIGNAL( forwardAvailable(bool) ), button, TQ_SLOT( setEnabled(bool) ) ); - button->setEnabled( FALSE ); + button->setEnabled( false ); button = new TQToolButton( icon_home, tr("Home"), "", browser, TQ_SLOT(home()), toolbar ); toolbar->addSeparator(); - pathCombo = new TQComboBox( TRUE, toolbar ); + pathCombo = new TQComboBox( true, toolbar ); connect( pathCombo, TQ_SIGNAL( activated( const TQString & ) ), this, TQ_SLOT( pathSelected( const TQString & ) ) ); toolbar->setStretchableWidget( pathCombo ); - setRightJustification( TRUE ); - setDockEnabled( DockLeft, FALSE ); - setDockEnabled( DockRight, FALSE ); + setRightJustification( true ); + setDockEnabled( DockLeft, false ); + setDockEnabled( DockRight, false ); pathCombo->insertItem( home_ ); browser->setFocus(); @@ -272,11 +272,11 @@ void HelpWindow::sourceChanged( const setCaption( "TQt Example - Helpviewer - " + browser->documentTitle() ) ; if ( !url.isEmpty() && pathCombo ) { - bool exists = FALSE; + bool exists = false; int i; for ( i = 0; i < pathCombo->count(); ++i ) { if ( pathCombo->text( i ) == url ) { - exists = TRUE; + exists = true; break; } } @@ -341,7 +341,7 @@ void HelpWindow::print() { #ifndef TQT_NO_PRINTER TQPrinter printer( TQPrinter::HighResolution ); - printer.setFullPage(TRUE); + printer.setFullPage(true); if ( printer.setup( this ) ) { TQPainter p( &printer ); if( !p.isActive() ) // starting printing failed @@ -368,7 +368,7 @@ void HelpWindow::print() break; printer.newPage(); page++; - } while (TRUE); + } while (true); } #endif } -- cgit v1.2.3