summaryrefslogtreecommitdiffstats
path: root/examples/demo/opengl/glworkspace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/demo/opengl/glworkspace.cpp')
-rw-r--r--examples/demo/opengl/glworkspace.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/demo/opengl/glworkspace.cpp b/examples/demo/opengl/glworkspace.cpp
index 32c491be6..04db7c4b5 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;
}
}