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/wizard-example.html | 56 ++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'doc/html/wizard-example.html') diff --git a/doc/html/wizard-example.html b/doc/html/wizard-example.html index d1175ec15..03513778a 100644 --- a/doc/html/wizard-example.html +++ b/doc/html/wizard-example.html @@ -72,7 +72,7 @@ protected: void setupPage3(); TQHBox *page1, *page2, *page3; - TQLineEdit *key, *firstName, *lastName, *address, *phone, *email; + TQLineEdit *key, *firstName, *lastName, *address, *phone, *email; TQLabel *lKey, *lFirstName, *lLastName, *lAddress, *lPhone, *lEmail; protected slots: @@ -102,8 +102,8 @@ protected slots: #include <ntqhbox.h> #include <ntqvbox.h> #include <tqlabel.h> -#include <ntqlineedit.h> -#include <ntqpushbutton.h> +#include <tqlineedit.h> +#include <tqpushbutton.h> #include <ntqvalidator.h> #include <ntqapplication.h> @@ -137,11 +137,11 @@ void Wizard::setupPage1() (void)new TQLabel( "Key:", row1 ); - key = new TQLineEdit( row1 ); - key->setMaxLength( 4 ); - key->setValidator( new TQIntValidator( 1000, 9999, key ) ); + key = new TQLineEdit( row1 ); + key->setMaxLength( 4 ); + key->setValidator( new TQIntValidator( 1000, 9999, key ) ); - connect( key, TQ_SIGNAL( textChanged( const TQString & ) ), + connect( key, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( keyChanged( const TQString & ) ) ); addPage( page1, "Personal Key" ); @@ -191,17 +191,17 @@ void Wizard::setupPage2() label4->setMinimumWidth( label4->sizeHint().width() ); label5->setMinimumWidth( label4->sizeHint().width() ); - firstName = new TQLineEdit( row1 ); - lastName = new TQLineEdit( row2 ); - address = new TQLineEdit( row3 ); - phone = new TQLineEdit( row4 ); - email = new TQLineEdit( row5 ); + firstName = new TQLineEdit( row1 ); + lastName = new TQLineEdit( row2 ); + address = new TQLineEdit( row3 ); + phone = new TQLineEdit( row4 ); + email = new TQLineEdit( row5 ); - connect( firstName, TQ_SIGNAL( textChanged( const TQString & ) ), + connect( firstName, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( dataChanged( const TQString & ) ) ); - connect( lastName, TQ_SIGNAL( textChanged( const TQString & ) ), + connect( lastName, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( dataChanged( const TQString & ) ) ); - connect( email, TQ_SIGNAL( textChanged( const TQString & ) ), + connect( email, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( dataChanged( const TQString & ) ) ); addPage( page2, "Personal Data" ); @@ -274,21 +274,21 @@ void Wizard::setupPage3() if ( page == page1 ) { } else if ( page == page2 ) { } else if ( page == page3 ) { - lKey->setText( key->text() ); - lFirstName->setText( firstName->text() ); - lLastName->setText( lastName->text() ); - lAddress->setText( address->text() ); - lPhone->setText( phone->text() ); - lEmail->setText( email->text() ); + lKey->setText( key->text() ); + lFirstName->setText( firstName->text() ); + lLastName->setText( lastName->text() ); + lAddress->setText( address->text() ); + lPhone->setText( phone->text() ); + lEmail->setText( email->text() ); } TQWizard::showPage(page); if ( page == page1 ) { - keyChanged( key->text() ); + keyChanged( key->text() ); key->setFocus(); } else if ( page == page2 ) { - dataChanged( firstName->text() ); + dataChanged( firstName->text() ); firstName->setFocus(); } else if ( page == page3 ) { finishButton()->setEnabled( TRUE ); @@ -300,15 +300,15 @@ void Wizard::keyChanged( const TQStri { TQString t = text; int p = 0; - bool on = ( key->validator()->validate(t, p) == TQValidator::Acceptable ); + bool on = ( key->validator()->validate(t, p) == TQValidator::Acceptable ); nextButton()->setEnabled( on ); } void Wizard::dataChanged( const TQString & ) { - if ( !firstName->text().isEmpty() && - !lastName->text().isEmpty() && - !email->text().isEmpty() ) + if ( !firstName->text().isEmpty() && + !lastName->text().isEmpty() && + !email->text().isEmpty() ) nextButton()->setEnabled( TRUE ); else nextButton()->setEnabled( FALSE ); @@ -336,7 +336,7 @@ int main(int argc,char **argv) Wizard wizard; wizard.setCaption("TQt Example - Wizard"); - return wizard.exec(); + return wizard.exec(); } -- cgit v1.2.3