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/action | |
| 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/action')
| -rw-r--r-- | examples/action/application.cpp | 8 | ||||
| -rw-r--r-- | examples/action/toggleaction/toggleaction.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/action/application.cpp b/examples/action/application.cpp index ecd70cdd0..ffde54348 100644 --- a/examples/action/application.cpp +++ b/examples/action/application.cpp @@ -178,7 +178,7 @@ void ApplicationWindow::load( const TQString &fileName ) TQTextStream ts( &f ); e->setText( ts.read() ); - e->setModified( FALSE ); + e->setModified( false ); setCaption( fileName ); statusBar()->message( "Loaded document " + fileName, 2000 ); } @@ -203,7 +203,7 @@ void ApplicationWindow::save() t << text; f.close(); - e->setModified( FALSE ); + e->setModified( false ); setCaption( filename ); @@ -226,7 +226,7 @@ void ApplicationWindow::saveAs() void ApplicationWindow::print() { - printer->setFullPage( TRUE ); + printer->setFullPage( true ); if ( printer->setup(this) ) { // printer dialog statusBar()->message( "Printing..." ); TQPainter p; @@ -257,7 +257,7 @@ void ApplicationWindow::print() break; printer->newPage(); page++; - } while (TRUE); + } while (true); statusBar()->message( "Printing completed", 2000 ); } else { diff --git a/examples/action/toggleaction/toggleaction.cpp b/examples/action/toggleaction/toggleaction.cpp index 5da1a685c..dcb39f51e 100644 --- a/examples/action/toggleaction/toggleaction.cpp +++ b/examples/action/toggleaction/toggleaction.cpp @@ -13,7 +13,7 @@ int main( int argc, char **argv ) TQToolBar * toolbar = new TQToolBar( window ); TQAction * labelonoffaction = new TQAction( window, "labelonoff" ); - labelonoffaction->setToggleAction( TRUE ); + labelonoffaction->setToggleAction( true ); labelonoffaction->setText( "labels on/off" ); labelonoffaction->setAccel( TQt::ALT+TQt::Key_L ); |
