diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
commit | dcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch) | |
tree | d57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/progress-example.html | |
parent | 649c4c61a1f1f479f4532b196f68df476cef2680 (diff) | |
download | tqt-rename/true-false-4.tar.gz tqt-rename/true-false-4.zip |
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/progress-example.html')
-rw-r--r-- | doc/html/progress-example.html | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/doc/html/progress-example.html b/doc/html/progress-example.html index 0f4c11248..bceb007e2 100644 --- a/doc/html/progress-example.html +++ b/doc/html/progress-example.html @@ -203,7 +203,7 @@ public: cl_id = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "Custom label", this, TQ_SLOT(customLabel()) ); options-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); md_id = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "No minimum duration", this, TQ_SLOT(toggleMinimumDuration()) ); -<a name="x81"></a> options-><a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); +<a name="x81"></a> options-><a href="tqpopupmenu.html#setCheckable">setCheckable</a>( true ); loopDriven(); defaultLabel(); @@ -219,34 +219,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-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( td_id, TRUE ); - options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, FALSE ); + timer_driven = true; +<a name="x71"></a> options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( td_id, true ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, false ); } void loopDriven() { - timer_driven = FALSE; - options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, TRUE ); - options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( td_id, FALSE ); + timer_driven = false; + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, true ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( td_id, false ); } void defaultLabel() { - default_label = TRUE; - options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, TRUE ); - options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, FALSE ); + default_label = true; + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, true ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, false ); } void customLabel() { - default_label = FALSE; - options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, FALSE ); - options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, TRUE ); + default_label = false; + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, false ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, true ); } void toggleMinimumDuration() @@ -283,7 +283,7 @@ private: pb-><a href="tqprogressdialog.html#setProgress">setProgress</a>( pb-><a href="tqprogressdialog.html#totalSteps">totalSteps</a>() ); <a href="tqpainter.html">TQPainter</a> p(this); p.<a href="tqpainter.html#fillRect">fillRect</a>(0, 0, width(), height(), backgroundColor()); - enableDrawingItems(TRUE); + enableDrawingItems(true); killTimers(); delete pb; pb = 0; @@ -317,15 +317,15 @@ private: } rects = n; pb = newProgressDialog("Drawing rectangles.\n" - "Using timer event.", n, FALSE); + "Using timer event.", n, false); pb-><a href="tqwidget.html#setCaption">setCaption</a>("Please Wait"); <a name="x82"></a> connect(pb, TQ_SIGNAL(<a href="tqprogressdialog.html#cancelled">cancelled</a>()), this, TQ_SLOT(stopDrawing())); - enableDrawingItems(FALSE); + enableDrawingItems(false); startTimer(0); - got_stop = FALSE; + got_stop = false; } else { <a href="tqprogressdialog.html">TQProgressDialog</a>* lpb = newProgressDialog( - "Drawing rectangles.\nUsing loop.", n, TRUE); + "Drawing rectangles.\nUsing loop.", n, true); lpb-><a href="tqwidget.html#setCaption">setCaption</a>("Please Wait"); <a href="tqpainter.html">TQPainter</a> p(this); |