diff options
Diffstat (limited to 'doc/html/wizard-example.html')
-rw-r--r-- | doc/html/wizard-example.html | 56 |
1 files changed, 28 insertions, 28 deletions
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(); <a href="ntqhbox.html">TQHBox</a> *page1, *page2, *page3; - <a href="ntqlineedit.html">TQLineEdit</a> *key, *firstName, *lastName, *address, *phone, *email; + <a href="tqlineedit.html">TQLineEdit</a> *key, *firstName, *lastName, *address, *phone, *email; <a href="tqlabel.html">TQLabel</a> *lKey, *lFirstName, *lLastName, *lAddress, *lPhone, *lEmail; protected slots: @@ -102,8 +102,8 @@ protected slots: #include <<a href="qhbox-h.html">ntqhbox.h</a>> #include <<a href="qvbox-h.html">ntqvbox.h</a>> #include <<a href="tqlabel-h.html">tqlabel.h</a>> -#include <<a href="qlineedit-h.html">ntqlineedit.h</a>> -#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="tqlineedit-h.html">tqlineedit.h</a>> +#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> #include <<a href="qvalidator-h.html">ntqvalidator.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> @@ -137,11 +137,11 @@ void <a name="f183"></a>Wizard::setupPage1() (void)new <a href="tqlabel.html">TQLabel</a>( "Key:", row1 ); - key = new <a href="ntqlineedit.html">TQLineEdit</a>( row1 ); -<a name="x6"></a> key-><a href="ntqlineedit.html#setMaxLength">setMaxLength</a>( 4 ); -<a name="x7"></a> key-><a href="ntqlineedit.html#setValidator">setValidator</a>( new <a href="qintvalidator.html">TQIntValidator</a>( 1000, 9999, key ) ); + key = new <a href="tqlineedit.html">TQLineEdit</a>( row1 ); +<a name="x6"></a> key-><a href="tqlineedit.html#setMaxLength">setMaxLength</a>( 4 ); +<a name="x7"></a> key-><a href="tqlineedit.html#setValidator">setValidator</a>( new <a href="qintvalidator.html">TQIntValidator</a>( 1000, 9999, key ) ); -<a name="x9"></a> <a href="tqobject.html#connect">connect</a>( key, TQ_SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="tqstring.html">TQString</a> & ) ), +<a name="x9"></a> <a href="tqobject.html#connect">connect</a>( key, TQ_SIGNAL( <a href="tqlineedit.html#textChanged">textChanged</a>( const <a href="tqstring.html">TQString</a> & ) ), this, TQ_SLOT( keyChanged( const <a href="tqstring.html">TQString</a> & ) ) ); <a href="ntqwizard.html#addPage">addPage</a>( page1, "Personal Key" ); @@ -191,17 +191,17 @@ void <a name="f184"></a>Wizard::setupPage2() label4-><a href="tqwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="tqwidget.html#sizeHint">sizeHint</a>().width() ); label5-><a href="tqwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="tqwidget.html#sizeHint">sizeHint</a>().width() ); - firstName = new <a href="ntqlineedit.html">TQLineEdit</a>( row1 ); - lastName = new <a href="ntqlineedit.html">TQLineEdit</a>( row2 ); - address = new <a href="ntqlineedit.html">TQLineEdit</a>( row3 ); - phone = new <a href="ntqlineedit.html">TQLineEdit</a>( row4 ); - email = new <a href="ntqlineedit.html">TQLineEdit</a>( row5 ); + firstName = new <a href="tqlineedit.html">TQLineEdit</a>( row1 ); + lastName = new <a href="tqlineedit.html">TQLineEdit</a>( row2 ); + address = new <a href="tqlineedit.html">TQLineEdit</a>( row3 ); + phone = new <a href="tqlineedit.html">TQLineEdit</a>( row4 ); + email = new <a href="tqlineedit.html">TQLineEdit</a>( row5 ); - <a href="tqobject.html#connect">connect</a>( firstName, TQ_SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="tqstring.html">TQString</a> & ) ), + <a href="tqobject.html#connect">connect</a>( firstName, TQ_SIGNAL( <a href="tqlineedit.html#textChanged">textChanged</a>( const <a href="tqstring.html">TQString</a> & ) ), this, TQ_SLOT( dataChanged( const <a href="tqstring.html">TQString</a> & ) ) ); - <a href="tqobject.html#connect">connect</a>( lastName, TQ_SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="tqstring.html">TQString</a> & ) ), + <a href="tqobject.html#connect">connect</a>( lastName, TQ_SIGNAL( <a href="tqlineedit.html#textChanged">textChanged</a>( const <a href="tqstring.html">TQString</a> & ) ), this, TQ_SLOT( dataChanged( const <a href="tqstring.html">TQString</a> & ) ) ); - <a href="tqobject.html#connect">connect</a>( email, TQ_SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="tqstring.html">TQString</a> & ) ), + <a href="tqobject.html#connect">connect</a>( email, TQ_SIGNAL( <a href="tqlineedit.html#textChanged">textChanged</a>( const <a href="tqstring.html">TQString</a> & ) ), this, TQ_SLOT( dataChanged( const <a href="tqstring.html">TQString</a> & ) ) ); <a href="ntqwizard.html#addPage">addPage</a>( page2, "Personal Data" ); @@ -274,21 +274,21 @@ void <a name="f185"></a>Wizard::setupPage3() if ( page == page1 ) { } else if ( page == page2 ) { } else if ( page == page3 ) { -<a name="x8"></a> lKey-><a href="tqlabel.html#setText">setText</a>( key-><a href="ntqlineedit.html#text">text</a>() ); - lFirstName-><a href="tqlabel.html#setText">setText</a>( firstName-><a href="ntqlineedit.html#text">text</a>() ); - lLastName-><a href="tqlabel.html#setText">setText</a>( lastName-><a href="ntqlineedit.html#text">text</a>() ); - lAddress-><a href="tqlabel.html#setText">setText</a>( address-><a href="ntqlineedit.html#text">text</a>() ); - lPhone-><a href="tqlabel.html#setText">setText</a>( phone-><a href="ntqlineedit.html#text">text</a>() ); - lEmail-><a href="tqlabel.html#setText">setText</a>( email-><a href="ntqlineedit.html#text">text</a>() ); +<a name="x8"></a> lKey-><a href="tqlabel.html#setText">setText</a>( key-><a href="tqlineedit.html#text">text</a>() ); + lFirstName-><a href="tqlabel.html#setText">setText</a>( firstName-><a href="tqlineedit.html#text">text</a>() ); + lLastName-><a href="tqlabel.html#setText">setText</a>( lastName-><a href="tqlineedit.html#text">text</a>() ); + lAddress-><a href="tqlabel.html#setText">setText</a>( address-><a href="tqlineedit.html#text">text</a>() ); + lPhone-><a href="tqlabel.html#setText">setText</a>( phone-><a href="tqlineedit.html#text">text</a>() ); + lEmail-><a href="tqlabel.html#setText">setText</a>( email-><a href="tqlineedit.html#text">text</a>() ); } TQWizard::<a href="ntqwizard.html#showPage">showPage</a>(page); if ( page == page1 ) { - keyChanged( key-><a href="ntqlineedit.html#text">text</a>() ); + keyChanged( key-><a href="tqlineedit.html#text">text</a>() ); key-><a href="tqwidget.html#setFocus">setFocus</a>(); } else if ( page == page2 ) { - dataChanged( firstName-><a href="ntqlineedit.html#text">text</a>() ); + dataChanged( firstName-><a href="tqlineedit.html#text">text</a>() ); firstName-><a href="tqwidget.html#setFocus">setFocus</a>(); } else if ( page == page3 ) { <a href="ntqwizard.html#finishButton">finishButton</a>()->setEnabled( TRUE ); @@ -300,15 +300,15 @@ void <a name="f186"></a>Wizard::keyChanged( const <a href="tqstring.html">TQStri { <a href="tqstring.html">TQString</a> t = text; int p = 0; -<a name="x10"></a> bool on = ( key-><a href="ntqlineedit.html#validator">validator</a>()->validate(t, p) == TQValidator::Acceptable ); +<a name="x10"></a> bool on = ( key-><a href="tqlineedit.html#validator">validator</a>()->validate(t, p) == TQValidator::Acceptable ); <a href="ntqwizard.html#nextButton">nextButton</a>()->setEnabled( on ); } void <a name="f187"></a>Wizard::dataChanged( const <a href="tqstring.html">TQString</a> & ) { - if ( !firstName-><a href="ntqlineedit.html#text">text</a>().isEmpty() && - !lastName-><a href="ntqlineedit.html#text">text</a>().isEmpty() && - !email-><a href="ntqlineedit.html#text">text</a>().isEmpty() ) + if ( !firstName-><a href="tqlineedit.html#text">text</a>().isEmpty() && + !lastName-><a href="tqlineedit.html#text">text</a>().isEmpty() && + !email-><a href="tqlineedit.html#text">text</a>().isEmpty() ) <a href="ntqwizard.html#nextButton">nextButton</a>()->setEnabled( TRUE ); else <a href="ntqwizard.html#nextButton">nextButton</a>()->setEnabled( FALSE ); @@ -336,7 +336,7 @@ int main(int argc,char **argv) Wizard wizard; wizard.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Wizard"); -<a name="x16"></a> return wizard.<a href="ntqdialog.html#exec">exec</a>(); +<a name="x16"></a> return wizard.<a href="tqdialog.html#exec">exec</a>(); } </pre> |