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 08:53:47 +0900 |
commit | c03a4800879ab62692e017e01c825ba12a421ad0 (patch) | |
tree | 57aeff4300eb9fa64d193569f56b2d98305b49a2 /examples/canvas/canvas.cpp | |
parent | 030b165ac197ce4c2eb62c7700dc4c10604637aa (diff) | |
download | tqt-c03a4800879ab62692e017e01c825ba12a421ad0.tar.gz tqt-c03a4800879ab62692e017e01c825ba12a421ad0.zip |
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/canvas/canvas.cpp')
-rw-r--r-- | examples/canvas/canvas.cpp | 16 |
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); |