From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/progressbar-example.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'doc/html/progressbar-example.html') diff --git a/doc/html/progressbar-example.html b/doc/html/progressbar-example.html index dbd80cf30..a6813a06f 100644 --- a/doc/html/progressbar-example.html +++ b/doc/html/progressbar-example.html @@ -61,7 +61,7 @@ class ProgressBar : public TQButtonGroup TQ_OBJECT public: - ProgressBar( TQWidget *parent = 0, const char *name = 0 ); + ProgressBar( TQWidget *parent = 0, const char *name = 0 ); protected: TQRadioButton *slow, *normal, *fast; @@ -106,12 +106,12 @@ protected slots: * Creates child widgets of the ProgressBar widget */ -ProgressBar::ProgressBar( TQWidget *parent, const char *name ) +ProgressBar::ProgressBar( TQWidget *parent, const char *name ) : TQButtonGroup( 0, Horizontal, "Progress Bar", parent, name ), timer() { setMargin( 10 ); - TQGridLayout* toplayout = new TQGridLayout( layout(), 2, 2, 5); + TQGridLayout* toplayout = new TQGridLayout( layout(), 2, 2, 5); setRadioButtonExclusive( TRUE ); @@ -137,7 +137,7 @@ protected slots: // Create the progressbar progress = new TQProgressBar( 100, this ); - // progress->setStyle( new TQMotifStyle() ); + // progress->setStyle( new TQMotifStyle() ); toplayout->addMultiCellWidget( progress, 1, 1, 0, 1 ); // connect the clicked() SIGNALs of the pushbuttons to SLOTs @@ -152,8 +152,8 @@ protected slots: // some contraints - start->setFixedWidth( 80 ); - setMinimumWidth( 300 ); + start->setFixedWidth( 80 ); + setMinimumWidth( 300 ); } /* @@ -177,9 +177,9 @@ void ProgressBar::slotStart() progress->setTotalSteps( 50 ); // disable the speed-radiobuttons - slow->setEnabled( FALSE ); - normal->setEnabled( FALSE ); - fast->setEnabled( FALSE ); + slow->setEnabled( FALSE ); + normal->setEnabled( FALSE ); + fast->setEnabled( FALSE ); } // If the progress is not running... @@ -210,12 +210,12 @@ void ProgressBar::slotReset() // rename the start/pause/continue button to Start... start->setText( "&Start" ); // ...and enable this button - start->setEnabled( TRUE ); + start->setEnabled( TRUE ); // enable the speed-radiobuttons - slow->setEnabled( TRUE ); - normal->setEnabled( TRUE ); - fast->setEnabled( TRUE ); + slow->setEnabled( TRUE ); + normal->setEnabled( TRUE ); + fast->setEnabled( TRUE ); // reset the progressbar progress->reset(); @@ -238,7 +238,7 @@ void ProgressBar::slotTimeout() // ...rename the start/pause/continue button to Start... start->setText( "&Start" ); // ...and disable it... - start->setEnabled( FALSE ); + start->setEnabled( FALSE ); // ...and return return; } @@ -269,9 +269,9 @@ int main(int argc,char **argv) TQApplication a(argc,argv); ProgressBar progressbar; - progressbar.setCaption("TQt Example - ProgressBar"); + progressbar.setCaption("TQt Example - ProgressBar"); a.setMainWidget(&progressbar); - progressbar.show(); + progressbar.show(); return a.exec(); } -- cgit v1.2.1