diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-16 17:42:59 +0900 |
| commit | 4d495175043c399fdca6e1bb4c74ef176fc76fb4 (patch) | |
| tree | 119a6d76d177dade68b3744cb660fe26b33c9864 /doc/html/drawlines-example.html | |
| parent | cf2c8613706a3685266058db00c0e9f632c5bd24 (diff) | |
| download | tqt-4d495175043c399fdca6e1bb4c74ef176fc76fb4.tar.gz tqt-4d495175043c399fdca6e1bb4c74ef176fc76fb4.zip | |
Replace TRUE/FALSE with boolean values true/false - part 4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/drawlines-example.html')
| -rw-r--r-- | doc/html/drawlines-example.html | 8 |
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<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 } |
