diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-01 22:09:14 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-08 09:01:42 +0900 |
| commit | 81ade129093a279e6537db25710583fd2bba9427 (patch) | |
| tree | a210834cbccc8aee2e9de7a8b7f41e1d31e2ced0 /examples/wizard/wizard.cpp | |
| parent | 35ced32e331ee29fda1642616c803637952f5b22 (diff) | |
| download | tqt-81ade129.tar.gz tqt-81ade129.zip | |
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c03a4800879ab62692e017e01c825ba12a421ad0)
Diffstat (limited to 'examples/wizard/wizard.cpp')
| -rw-r--r-- | examples/wizard/wizard.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/wizard/wizard.cpp b/examples/wizard/wizard.cpp index 40cb686a8..47c338850 100644 --- a/examples/wizard/wizard.cpp +++ b/examples/wizard/wizard.cpp @@ -19,7 +19,7 @@ #include <ntqapplication.h> Wizard::Wizard( TQWidget *parent, const char *name ) - : TQWizard( parent, name, TRUE ) + : TQWizard( parent, name, true ) { setupPage1(); setupPage2(); @@ -57,8 +57,8 @@ void Wizard::setupPage1() addPage( page1, "Personal Key" ); - setNextEnabled( page1, FALSE ); - setHelpEnabled( page1, FALSE ); + setNextEnabled( page1, false ); + setHelpEnabled( page1, false ); } void Wizard::setupPage2() @@ -117,7 +117,7 @@ void Wizard::setupPage2() addPage( page2, "Personal Data" ); - setHelpEnabled( page2, FALSE ); + setHelpEnabled( page2, false ); } void Wizard::setupPage3() @@ -176,8 +176,8 @@ void Wizard::setupPage3() addPage( page3, "Finish" ); - setFinishEnabled( page3, TRUE ); - setHelpEnabled( page3, FALSE ); + setFinishEnabled( page3, true ); + setHelpEnabled( page3, false ); } void Wizard::showPage( TQWidget* page ) @@ -202,7 +202,7 @@ void Wizard::showPage( TQWidget* page ) dataChanged( firstName->text() ); firstName->setFocus(); } else if ( page == page3 ) { - finishButton()->setEnabled( TRUE ); + finishButton()->setEnabled( true ); finishButton()->setFocus(); } } @@ -220,7 +220,7 @@ void Wizard::dataChanged( const TQString & ) if ( !firstName->text().isEmpty() && !lastName->text().isEmpty() && !email->text().isEmpty() ) - nextButton()->setEnabled( TRUE ); + nextButton()->setEnabled( true ); else - nextButton()->setEnabled( FALSE ); + nextButton()->setEnabled( false ); } |
