From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/progress-example.html | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'doc/html/progress-example.html') 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->insertItem( "Custom label", this, TQ_SLOT(customLabel()) ); options->insertSeparator(); md_id = options->insertItem( "No minimum duration", this, TQ_SLOT(toggleMinimumDuration()) ); - options->setCheckable( TRUE ); + options->setCheckable( 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; - options->setItemChecked( td_id, TRUE ); - options->setItemChecked( ld_id, FALSE ); + timer_driven = true; + options->setItemChecked( td_id, true ); + options->setItemChecked( ld_id, false ); } void loopDriven() { - timer_driven = FALSE; - options->setItemChecked( ld_id, TRUE ); - options->setItemChecked( td_id, FALSE ); + timer_driven = false; + options->setItemChecked( ld_id, true ); + options->setItemChecked( td_id, false ); } void defaultLabel() { - default_label = TRUE; - options->setItemChecked( dl_id, TRUE ); - options->setItemChecked( cl_id, FALSE ); + default_label = true; + options->setItemChecked( dl_id, true ); + options->setItemChecked( cl_id, false ); } void customLabel() { - default_label = FALSE; - options->setItemChecked( dl_id, FALSE ); - options->setItemChecked( cl_id, TRUE ); + default_label = false; + options->setItemChecked( dl_id, false ); + options->setItemChecked( cl_id, true ); } void toggleMinimumDuration() @@ -283,7 +283,7 @@ private: pb->setProgress( pb->totalSteps() ); TQPainter p(this); p.fillRect(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->setCaption("Please Wait"); connect(pb, TQ_SIGNAL(cancelled()), this, TQ_SLOT(stopDrawing())); - enableDrawingItems(FALSE); + enableDrawingItems(false); startTimer(0); - got_stop = FALSE; + got_stop = false; } else { TQProgressDialog* lpb = newProgressDialog( - "Drawing rectangles.\nUsing loop.", n, TRUE); + "Drawing rectangles.\nUsing loop.", n, true); lpb->setCaption("Please Wait"); TQPainter p(this); -- cgit v1.2.3