summaryrefslogtreecommitdiffstats
path: root/doc/html/progress-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/progress-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/progress-example.html')
-rw-r--r--doc/html/progress-example.html38
1 files changed, 19 insertions, 19 deletions
diff --git a/doc/html/progress-example.html b/doc/html/progress-example.html
index 266f56861..7302e32cb 100644
--- a/doc/html/progress-example.html
+++ b/doc/html/progress-example.html
@@ -204,7 +204,7 @@ public:
cl_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Custom label", this, TQ_SLOT(customLabel()) );
options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
md_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "No minimum duration", this, TQ_SLOT(toggleMinimumDuration()) );
-<a name="x81"></a> options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+<a name="x81"></a> options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( true );
loopDriven();
defaultLabel();
@@ -220,34 +220,34 @@ public slots:
draw(drawItemRects(id));
}
- void stopDrawing() { got_stop = TRUE; }
+ void stopDrawing() { got_stop = true; }
void timerDriven()
{
- timer_driven = TRUE;
-<a name="x71"></a> options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( td_id, TRUE );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, FALSE );
+ timer_driven = true;
+<a name="x71"></a> options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( td_id, true );
+ options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, false );
}
void loopDriven()
{
- timer_driven = FALSE;
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, TRUE );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( td_id, FALSE );
+ timer_driven = false;
+ options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, true );
+ options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( td_id, false );
}
void defaultLabel()
{
- default_label = TRUE;
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, TRUE );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, FALSE );
+ default_label = true;
+ options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, true );
+ options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, false );
}
void customLabel()
{
- default_label = FALSE;
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, FALSE );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, TRUE );
+ default_label = false;
+ options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, false );
+ options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, true );
}
void toggleMinimumDuration()
@@ -284,7 +284,7 @@ private:
pb-&gt;<a href="ntqprogressdialog.html#setProgress">setProgress</a>( pb-&gt;<a href="ntqprogressdialog.html#totalSteps">totalSteps</a>() );
<a href="ntqpainter.html">TQPainter</a> p(this);
p.<a href="ntqpainter.html#fillRect">fillRect</a>(0, 0, width(), height(), backgroundColor());
- enableDrawingItems(TRUE);
+ enableDrawingItems(true);
killTimers();
delete pb;
pb = 0;
@@ -318,15 +318,15 @@ private:
}
rects = n;
pb = newProgressDialog("Drawing rectangles.\n"
- "Using timer event.", n, FALSE);
+ "Using timer event.", n, false);
pb-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("Please Wait");
<a name="x82"></a> connect(pb, TQ_SIGNAL(<a href="ntqprogressdialog.html#cancelled">cancelled</a>()), this, TQ_SLOT(stopDrawing()));
- enableDrawingItems(FALSE);
+ enableDrawingItems(false);
startTimer(0);
- got_stop = FALSE;
+ got_stop = false;
} else {
<a href="ntqprogressdialog.html">TQProgressDialog</a>* lpb = newProgressDialog(
- "Drawing rectangles.\nUsing loop.", n, TRUE);
+ "Drawing rectangles.\nUsing loop.", n, true);
lpb-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("Please Wait");
<a href="ntqpainter.html">TQPainter</a> p(this);