summaryrefslogtreecommitdiffstats
path: root/doc/html/drawlines-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/drawlines-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/drawlines-example.html')
-rw-r--r--doc/html/drawlines-example.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/html/drawlines-example.html b/doc/html/drawlines-example.html
index c41b5349c..9bd59687e 100644
--- a/doc/html/drawlines-example.html
+++ b/doc/html/drawlines-example.html
@@ -77,7 +77,7 @@ private:
<a href="ntqpoint.html">TQPoint</a> *points; // point array
<a href="ntqcolor.html">TQColor</a> *colors; // color array
int count; // count = number of points
- bool down; // TRUE if mouse down
+ bool down; // true if mouse down
};
@@ -90,7 +90,7 @@ private:
{
<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( white ); // white background
count = 0;
- down = FALSE;
+ down = false;
points = new <a href="ntqpoint.html">TQPoint</a>[MAXPOINTS];
colors = new <a href="ntqcolor.html">TQColor</a>[MAXCOLORS];
for ( int i=0; i&lt;MAXCOLORS; i++ ) // init color array
@@ -126,7 +126,7 @@ ConnectWidget::~ConnectWidget()
<a name="x1659"></a>void ConnectWidget::<a href="ntqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * )
{
- down = TRUE;
+ down = true;
count = 0; // start recording points
<a href="ntqwidget.html#erase">erase</a>(); // erase widget contents
}
@@ -138,7 +138,7 @@ ConnectWidget::~ConnectWidget()
<a name="x1660"></a>void ConnectWidget::<a href="ntqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * )
{
- down = FALSE; // done recording points
+ down = false; // done recording points
<a href="ntqwidget.html#update">update</a>(); // draw the lines
}