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/demo/opengl/glworkspace.cpp | |
| parent | 35ced32e331ee29fda1642616c803637952f5b22 (diff) | |
| download | tqt-81ade129093a279e6537db25710583fd2bba9427.tar.gz tqt-81ade129093a279e6537db25710583fd2bba9427.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/demo/opengl/glworkspace.cpp')
| -rw-r--r-- | examples/demo/opengl/glworkspace.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/demo/opengl/glworkspace.cpp b/examples/demo/opengl/glworkspace.cpp index 8d7541fcb..867ef1d70 100644 --- a/examples/demo/opengl/glworkspace.cpp +++ b/examples/demo/opengl/glworkspace.cpp @@ -46,8 +46,8 @@ void GLWorkspace::setupSceneActions() TQActionGroup *newGroup = new TQActionGroup( this ); newGroup->setMenuText( tr( "&New" ) ); newGroup->setText( tr( "New" ) ); - newGroup->setUsesDropDown( TRUE ); - newGroup->setExclusive( FALSE ); + newGroup->setUsesDropDown( true ); + newGroup->setExclusive( false ); newGroup->setIconSet( TQPixmap( "textdrawing/filenew.png" ) ); a = new TQAction( tr( "Wirebox" ), TQPixmap( "opengl/wirebox.xpm" ), tr( "&Wirebox" ), 0, newGroup ); connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( newWirebox() ) ); @@ -64,8 +64,8 @@ void GLWorkspace::setupSceneActions() TQActionGroup *printGroup = new TQActionGroup( this ); printGroup->setMenuText( tr( "&Print" ) ); printGroup->setText( tr( "Print" ) ); - printGroup->setUsesDropDown( TRUE ); - printGroup->setExclusive( FALSE ); + printGroup->setUsesDropDown( true ); + printGroup->setExclusive( false ); printGroup->setIconSet( TQPixmap( "textdrawing/print.png" ) ); TQAction *da = new TQAction( tr( "Window Size" ), TQPixmap( "textdrawing/print.png" ), tr( "&Window Size" ), CTRL + Key_P, printGroup ); connect( da, TQ_SIGNAL( activated() ), this, TQ_SLOT( filePrintWindowRes() ) ); @@ -148,10 +148,10 @@ void GLWorkspace::filePrint( int x, int y ) img.invertPixels(); } if ( view.checkMirror->isChecked() ) { - img = img.mirror( TRUE, FALSE ); + img = img.mirror( true, false ); } if ( view.checkFlip->isChecked() ) { - img = img.mirror( FALSE, TRUE ); + img = img.mirror( false, true ); } if ( view.checkLeft->isEnabled() && view.checkLeft->isChecked() ) { } @@ -196,13 +196,13 @@ bool GLWorkspace::filePrintSetup() if ( !printer ) printer = new TQPrinter; if ( printer->setup() ) { - return TRUE; + return true; } else { if ( newPrinter ) { delete printer; printer = 0; } - return FALSE; + return false; } } |
