From fef846914f8db6dc117e206ef913d519bf6bb33e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 29 Jul 2024 12:43:23 +0900 Subject: Rename basic widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/chart-setdataform-cpp.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'doc/html/chart-setdataform-cpp.html') diff --git a/doc/html/chart-setdataform-cpp.html b/doc/html/chart-setdataform-cpp.html index 186ae6329..c181d80ee 100644 --- a/doc/html/chart-setdataform-cpp.html +++ b/doc/html/chart-setdataform-cpp.html @@ -36,10 +36,10 @@ body { background: #ffffff; color: black; } #include "chartform.h" #include <tqcolordialog.h> -#include <ntqcombobox.h> +#include <tqcombobox.h> #include <ntqlayout.h> #include <tqpixmap.h> -#include <ntqpushbutton.h> +#include <tqpushbutton.h> #include <ntqtable.h> #include "images/pattern01.xpm" @@ -63,7 +63,7 @@ const int MAX_PATTERNS = 14; SetDataForm::SetDataForm( ElementVector *elements, int decimalPlaces, TQWidget* parent, const char* name, bool modal, WFlags f ) - : TQDialog( parent, name, modal, f ) + : TQDialog( parent, name, modal, f ) { m_elements = elements; @@ -95,7 +95,7 @@ const int MAX_PATTERNS = 14; buttonBox = new TQHBoxLayout( 0, 0, 6, "button box layout" ); - colorPushButton = new TQPushButton( this, "color button" ); + colorPushButton = new TQPushButton( this, "color button" ); colorPushButton->setText( "&Color..." ); colorPushButton->setEnabled( FALSE ); buttonBox->addWidget( colorPushButton ); @@ -104,12 +104,12 @@ const int MAX_PATTERNS = 14; TQSizePolicy::Minimum ); buttonBox->addItem( spacer ); - okPushButton = new TQPushButton( this, "ok button" ); + okPushButton = new TQPushButton( this, "ok button" ); okPushButton->setText( "OK" ); - okPushButton->setDefault( TRUE ); + okPushButton->setDefault( TRUE ); buttonBox->addWidget( okPushButton ); - cancelPushButton = new TQPushButton( this, "cancel button" ); + cancelPushButton = new TQPushButton( this, "cancel button" ); cancelPushButton->setText( "Cancel" ); cancelPushButton->setAccel( Key_Escape ); buttonBox->addWidget( cancelPushButton ); @@ -123,8 +123,8 @@ const int MAX_PATTERNS = 14; connect( table, TQ_SIGNAL( valueChanged(int,int) ), this, TQ_SLOT( valueChanged(int,int) ) ); connect( colorPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( setColor() ) ); - connect( okPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) ); - connect( cancelPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) ); + connect( okPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) ); + connect( cancelPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) ); TQPixmap patterns[MAX_PATTERNS]; patterns[0] = TQPixmap( pattern01 ); @@ -159,10 +159,10 @@ const int MAX_PATTERNS = 14; table->setPixmap( i, 1, pix ); table->setText( i, 1, color.name() ); - TQComboBox *combobox = new TQComboBox; + TQComboBox *combobox = new TQComboBox; for ( int j = 0; j < MAX_PATTERNS; ++j ) - combobox->insertItem( patterns[j] ); - combobox->setCurrentItem( element.valuePattern() - 1 ); + combobox->insertItem( patterns[j] ); + combobox->setCurrentItem( element.valuePattern() - 1 ); table->setCellWidget( i, 2, combobox ); table->setText( i, 3, element.label() ); @@ -221,7 +221,7 @@ void SetDataForm::setColor( int row, int col ) } -void SetDataForm::accept() +void SetDataForm::accept() { bool ok; for ( int i = 0; i < ChartForm::MAX_ELEMENTS; ++i ) { @@ -238,7 +238,7 @@ void SetDataForm::accept() element.setLabelColor( TQColor( table->text( i, 4 ) ) ); } - TQDialog::accept(); + TQDialog::accept(); }


-- cgit v1.2.1