diff options
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 e2c6729a6..e1bc08022 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 13b8c1482..8a9195b29 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 ); |
