From 42957a3f812a1db64a9ae452baa2d3fbc35f2466 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 12 Aug 2024 22:02:11 +0900 Subject: Rename more widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/progress-example.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'doc/html/progress-example.html') diff --git a/doc/html/progress-example.html b/doc/html/progress-example.html index a06b39114..afd65d4c9 100644 --- a/doc/html/progress-example.html +++ b/doc/html/progress-example.html @@ -48,7 +48,7 @@ demonstrates simple use of menus. ** *****************************************************************************/ -#include <ntqprogressdialog.h> +#include <tqprogressdialog.h> #include <ntqapplication.h> #include <tqmenubar.h> #include <tqpopupmenu.h> @@ -260,7 +260,7 @@ private: void timerEvent( TQTimerEvent* ) { if (!got_stop) - pb->setProgress( pb->totalSteps() - rects ); + pb->setProgress( pb->totalSteps() - rects ); rects--; { @@ -281,7 +281,7 @@ private: if (!rects || got_stop) { if (!got_stop) - pb->setProgress( pb->totalSteps() ); + pb->setProgress( pb->totalSteps() ); TQPainter p(this); p.fillRect(0, 0, width(), height(), backgroundColor()); enableDrawingItems(TRUE); @@ -291,14 +291,14 @@ private: } } - TQProgressDialog* newProgressDialog( const char* label, int steps, bool modal ) + TQProgressDialog* newProgressDialog( const char* label, int steps, bool modal ) { - TQProgressDialog *d = new TQProgressDialog(label, "Cancel", steps, this, + TQProgressDialog *d = new TQProgressDialog(label, "Cancel", steps, this, "progress", modal); if ( options->isItemChecked( md_id ) ) - d->setMinimumDuration(0); + d->setMinimumDuration(0); if ( !default_label ) - d->setLabel( new AnimatedThingy(d,label) ); + d->setLabel( new AnimatedThingy(d,label) ); return d; } @@ -320,19 +320,19 @@ private: pb = newProgressDialog("Drawing rectangles.\n" "Using timer event.", n, FALSE); pb->setCaption("Please Wait"); - connect(pb, TQ_SIGNAL(cancelled()), this, TQ_SLOT(stopDrawing())); + connect(pb, TQ_SIGNAL(cancelled()), this, TQ_SLOT(stopDrawing())); enableDrawingItems(FALSE); startTimer(0); got_stop = FALSE; } else { - TQProgressDialog* lpb = newProgressDialog( + TQProgressDialog* lpb = newProgressDialog( "Drawing rectangles.\nUsing loop.", n, TRUE); lpb->setCaption("Please Wait"); TQPainter p(this); for (int i=0; i<n; i++) { - lpb->setProgress(i); - if ( lpb->wasCancelled() ) + lpb->setProgress(i); + if ( lpb->wasCancelled() ) break; TQColor c(rand()%255, rand()%255, rand()%255); @@ -350,7 +350,7 @@ private: } TQMenuBar* menubar; - TQProgressDialog* pb; + TQProgressDialog* pb; TQPopupMenu* options; int td_id, ld_id; int dl_id, cl_id; -- cgit v1.2.3