summaryrefslogtreecommitdiffstats
path: root/examples/canvas/canvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/canvas/canvas.cpp')
-rw-r--r--examples/canvas/canvas.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/canvas/canvas.cpp b/examples/canvas/canvas.cpp
index d5d551985..4b5566ecf 100644
--- a/examples/canvas/canvas.cpp
+++ b/examples/canvas/canvas.cpp
@@ -69,7 +69,7 @@ bool ImageItem::hit( const TQPoint &p ) const
int ix = p.x()-int(x());
int iy = p.y()-int(y());
if ( !image.valid( ix , iy ) )
- return FALSE;
+ return false;
TQRgb pixel = image.pixel( ix, iy );
return tqAlpha( pixel ) != 0;
}
@@ -205,7 +205,7 @@ BouncyLogo::BouncyLogo(TQCanvas* canvas) :
}
bouncyLogoCount++;
setSequence(logoarr);
- setAnimated(TRUE);
+ setAnimated(true);
initPos();
}
@@ -262,7 +262,7 @@ void BouncyLogo::advance(int stage)
vy = -vy;
for (int bounce=0; bounce<4; bounce++) {
- TQCanvasItemList l=collisions(FALSE);
+ TQCanvasItemList l=collisions(false);
for (TQCanvasItemList::Iterator it=l.begin(); it!=l.end(); ++it) {
TQCanvasItem *hit = *it;
if ( hit->rtti()==logo_rtti && hit->collidesWith(this) ) {
@@ -354,14 +354,14 @@ Main::Main(TQCanvas& c, TQWidget* parent, const char* name, WFlags f) :
options = new TQPopupMenu( menu );
dbf_id = options->insertItem("Double buffer", this, TQ_SLOT(toggleDoubleBuffer()));
- options->setItemChecked(dbf_id, TRUE);
+ options->setItemChecked(dbf_id, true);
menu->insertItem("&Options",options);
menu->insertSeparator();
TQPopupMenu* help = new TQPopupMenu( menu );
help->insertItem("&About", this, TQ_SLOT(help()), Key_F1);
- help->setItemChecked(dbf_id, TRUE);
+ help->setItemChecked(dbf_id, true);
menu->insertItem("&Help",help);
statusBar();
@@ -433,7 +433,7 @@ void Main::help()
"<li> Press ALT-L for some lines."
"<li> Drag the objects around."
"<li> Read the code!"
- "</ul>", TQMessageBox::Information, 1, 0, 0, this, 0, FALSE );
+ "</ul>", TQMessageBox::Information, 1, 0, 0, this, 0, false );
about->setButtonText( 1, "Dismiss" );
about->show();
}
@@ -528,7 +528,7 @@ void Main::print()
if ( !printer ) printer = new TQPrinter;
if ( printer->setup(this) ) {
TQPainter pp(printer);
- canvas.drawArea(TQRect(0,0,canvas.width(),canvas.height()),&pp,FALSE);
+ canvas.drawArea(TQRect(0,0,canvas.width(),canvas.height()),&pp,false);
}
}
@@ -695,7 +695,7 @@ void Main::addMesh()
#ifndef TQT_NO_PROGRESSDIALOG
TQProgressDialog progress( "Creating mesh...", "Abort", rows,
- this, "progress", TRUE );
+ this, "progress", true );
#endif
TQMemArray<NodeItem*> lastRow(cols);