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 09:01:42 +0900 |
| commit | 81ade129093a279e6537db25710583fd2bba9427 (patch) | |
| tree | a210834cbccc8aee2e9de7a8b7f41e1d31e2ced0 /examples/mdi | |
| parent | 35ced32e331ee29fda1642616c803637952f5b22 (diff) | |
| download | tqt-81ade129.tar.gz tqt-81ade129.zip | |
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c03a4800879ab62692e017e01c825ba12a421ad0)
Diffstat (limited to 'examples/mdi')
| -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 5b91bdb58..ec9a905eb 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(); @@ -398,7 +398,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 ) ) @@ -429,7 +429,7 @@ void MDIWindow::print( TQPrinter* printer) emit message( msg, 0 ); printer->newPage(); page++; - } while (TRUE); + } while (true); } #endif } |
