summaryrefslogtreecommitdiffstats
path: root/doc/html/drawlines-example.html
diff options
context:
space:
mode:
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 93bf8acbb..277e6fe03 100644
--- a/doc/html/drawlines-example.html
+++ b/doc/html/drawlines-example.html
@@ -76,7 +76,7 @@ private:
<a href="tqpoint.html">TQPoint</a> *points; // point array
<a href="tqcolor.html">TQColor</a> *colors; // color array
int count; // count = number of points
- bool down; // TRUE if mouse down
+ bool down; // true if mouse down
};
@@ -89,7 +89,7 @@ private:
{
<a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( white ); // white background
count = 0;
- down = FALSE;
+ down = false;
points = new <a href="tqpoint.html">TQPoint</a>[MAXPOINTS];
colors = new <a href="tqcolor.html">TQColor</a>[MAXCOLORS];
for ( int i=0; i&lt;MAXCOLORS; i++ ) // init color array
@@ -125,7 +125,7 @@ ConnectWidget::~ConnectWidget()
<a name="x1659"></a>void ConnectWidget::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> * )
{
- down = TRUE;
+ down = true;
count = 0; // start recording points
<a href="tqwidget.html#erase">erase</a>(); // erase widget contents
}
@@ -137,7 +137,7 @@ ConnectWidget::~ConnectWidget()
<a name="x1660"></a>void ConnectWidget::<a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> * )
{
- down = FALSE; // done recording points
+ down = false; // done recording points
<a href="tqwidget.html#update">update</a>(); // draw the lines
}