diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-01 22:09:14 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-08 08:53:47 +0900 |
commit | c03a4800879ab62692e017e01c825ba12a421ad0 (patch) | |
tree | 57aeff4300eb9fa64d193569f56b2d98305b49a2 /examples/mdi/application.cpp | |
parent | 030b165ac197ce4c2eb62c7700dc4c10604637aa (diff) | |
download | tqt-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/mdi/application.cpp')
-rw-r--r-- | examples/mdi/application.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/mdi/application.cpp b/examples/mdi/application.cpp index 33301eb8e..0bfee4d54 100644 --- a/examples/mdi/application.cpp +++ b/examples/mdi/application.cpp @@ -57,7 +57,7 @@ ApplicationWindow::ApplicationWindow() 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 @@ -110,7 +110,7 @@ ApplicationWindow::ApplicationWindow() 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 ); @@ -127,7 +127,7 @@ ApplicationWindow::ApplicationWindow() 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 ); @@ -222,9 +222,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(); @@ -395,7 +395,7 @@ void MDIWindow::print( TQPrinter* printer) 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 ) ) @@ -426,7 +426,7 @@ void MDIWindow::print( TQPrinter* printer) emit message( msg, 0 ); printer->newPage(); page++; - } while (TRUE); + } while (true); } #endif } |