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/mdi-example.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/html/mdi-example.html') diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html index 3a94262e9..2d90ad079 100644 --- a/doc/html/mdi-example.html +++ b/doc/html/mdi-example.html @@ -182,7 +182,7 @@ const char * filePrintText = "Click this button to print the file you " TQPixmap openIcon, saveIcon; fileTools = new TQToolBar( this, "file operations" ); - addToolBar( fileTools, tr( "File Operations" ), DockTop, TRUE ); + addToolBar( fileTools, tr( "File Operations" ), DockTop, true ); openIcon = TQPixmap( fileopen ); TQToolButton * fileOpen @@ -235,7 +235,7 @@ const char * filePrintText = "Click this button to print the file you " file->insertItem( "&Quit", tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_Q ); windowsMenu = new TQPopupMenu( this ); - windowsMenu->setCheckable( TRUE ); + windowsMenu->setCheckable( true ); connect( windowsMenu, TQ_SIGNAL( aboutToShow() ), this, TQ_SLOT( windowsMenuAboutToShow() ) ); menuBar()->insertItem( "&Windows", windowsMenu ); @@ -252,7 +252,7 @@ const char * filePrintText = "Click this button to print the file you " TQVBox* vb = new TQVBox( this ); vb->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken ); ws = new TQWorkspace( vb ); - ws->setScrollBarsEnabled( TRUE ); + ws->setScrollBarsEnabled( true ); setCentralWidget( vb ); statusBar()->message( "Ready", 2000 ); @@ -347,9 +347,9 @@ void ApplicationWindow::windowsMenuAboutToShow() int tileId = windowsMenu->insertItem("&Tile", ws, TQ_SLOT(tile() ) ); int horTileId = windowsMenu->insertItem("Tile &Horizontally", this, TQ_SLOT(tileHorizontal() ) ); if ( ws->windowList().isEmpty() ) { - windowsMenu->setItemEnabled( cascadeId, FALSE ); - windowsMenu->setItemEnabled( tileId, FALSE ); - windowsMenu->setItemEnabled( horTileId, FALSE ); + windowsMenu->setItemEnabled( cascadeId, false ); + windowsMenu->setItemEnabled( tileId, false ); + windowsMenu->setItemEnabled( horTileId, false ); } windowsMenu->insertSeparator(); TQWidgetList windows = ws->windowList(); @@ -520,7 +520,7 @@ void MDIWindow::print( TQPrinter int pageNo = 1; if ( printer->setup(this) ) { // printer dialog - printer->setFullPage( TRUE ); + printer->setFullPage( true ); emit message( "Printing...", 0 ); TQPainter p; if ( !p.begin( printer ) ) @@ -551,7 +551,7 @@ void MDIWindow::print( TQPrinter emit message( msg, 0 ); printer->newPage(); page++; - } while (TRUE); + } while (true); } #endif } -- cgit v1.2.3