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/canvas/canvas.cpp | |
| parent | 35ced32e331ee29fda1642616c803637952f5b22 (diff) | |
| download | tqt-81ade129.tar.gz tqt-81ade129.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/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 bd6589490..5c125d160 100644 --- a/examples/canvas/canvas.cpp +++ b/examples/canvas/canvas.cpp @@ -77,7 +77,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; } @@ -213,7 +213,7 @@ BouncyLogo::BouncyLogo(TQCanvas* canvas) : } bouncyLogoCount++; setSequence(logoarr); - setAnimated(TRUE); + setAnimated(true); initPos(); } @@ -270,7 +270,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) ) { @@ -362,14 +362,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(); @@ -441,7 +441,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(); } @@ -536,7 +536,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); } } @@ -703,7 +703,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); |
