summaryrefslogtreecommitdiffstats
path: root/examples/helpviewer/helpwindow.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-01 22:09:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-08 08:53:47 +0900
commitc03a4800879ab62692e017e01c825ba12a421ad0 (patch)
tree57aeff4300eb9fa64d193569f56b2d98305b49a2 /examples/helpviewer/helpwindow.cpp
parent030b165ac197ce4c2eb62c7700dc4c10604637aa (diff)
downloadtqt-c03a4800879ab62692e017e01c825ba12a421ad0.tar.gz
tqt-c03a4800879ab62692e017e01c825ba12a421ad0.zip
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/helpviewer/helpwindow.cpp')
-rw-r--r--examples/helpviewer/helpwindow.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/helpviewer/helpwindow.cpp b/examples/helpviewer/helpwindow.cpp
index b85eae3b9..9f935e9a1 100644
--- a/examples/helpviewer/helpwindow.cpp
+++ b/examples/helpviewer/helpwindow.cpp
@@ -110,8 +110,8 @@ HelpWindow::HelpWindow( const TQString& home_, const TQString& _path,
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 ) ),
@@ -124,21 +124,21 @@ HelpWindow::HelpWindow( const TQString& home_, const TQString& _path,
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();
@@ -165,11 +165,11 @@ void HelpWindow::sourceChanged( const TQString& url )
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;
}
}
@@ -234,7 +234,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
@@ -261,7 +261,7 @@ void HelpWindow::print()
break;
printer.newPage();
page++;
- } while (TRUE);
+ } while (true);
}
#endif
}