summaryrefslogtreecommitdiffstats
path: root/doc/html/life-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-11-26 15:11:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-11-26 15:11:22 +0900
commitb87533f9904c10f24d6b2e8177c00944e3efe15b (patch)
treec1106a381c851b51e86004698457aef1211b77be /doc/html/life-example.html
parent894037c3e68e1573a34183d936171f8cda5085f3 (diff)
downloadtqt-r14.1.x.tar.gz
tqt-r14.1.x.zip
Replace TRUE/FALSE with boolean values true/false - part 4r14.1.x
Manually cherry-picked from commit 4d495175 Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/life-example.html')
-rw-r--r--doc/html/life-example.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/html/life-example.html b/doc/html/life-example.html
index 1f2464e17..a26e98a54 100644
--- a/doc/html/life-example.html
+++ b/doc/html/life-example.html
@@ -142,14 +142,14 @@ void <a name="f518"></a>LifeWidget::clear()
for ( int t = 0; t &lt; 2; t++ )
for ( int i = 0; i &lt; MAXSIZE + 2; i++ )
for ( int j = 0; j &lt; MAXSIZE + 2; j++ )
- cells[t][i][j] = FALSE;
+ cells[t][i][j] = false;
<a href="ntqwidget.html#repaint">repaint</a>();
}
// We assume that the size will never be beyond the maximum size set
-// this is not in general TRUE, but in practice it's good enough for
+// this is not in general true, but in practice it's good enough for
// this program
<a name="x1889"></a>void LifeWidget::<a href="ntqframe.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * e )
@@ -163,8 +163,8 @@ void <a name="f519"></a>LifeWidget::setPoint( int i, int j )
{
if ( i &lt; 1 || i &gt; maxi || j &lt; 1 || j &gt; maxi )
return;
- cells[current][i][j] = TRUE;
- <a href="ntqwidget.html#repaint">repaint</a>( index2pos(i), index2pos(j), SCALE, SCALE, FALSE );
+ cells[current][i][j] = true;
+ <a href="ntqwidget.html#repaint">repaint</a>( index2pos(i), index2pos(j), SCALE, SCALE, false );
}
@@ -207,7 +207,7 @@ void <a name="f521"></a>LifeWidget::nextGeneration()
}
}
current = !current;
- <a href="ntqwidget.html#repaint">repaint</a>( FALSE ); // repaint without erase
+ <a href="ntqwidget.html#repaint">repaint</a>( false ); // repaint without erase
}