summaryrefslogtreecommitdiffstats
path: root/examples/wizard/wizard.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-01 22:09:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-08 08:53:47 +0900
commitc03a4800879ab62692e017e01c825ba12a421ad0 (patch)
tree57aeff4300eb9fa64d193569f56b2d98305b49a2 /examples/wizard/wizard.cpp
parent030b165ac197ce4c2eb62c7700dc4c10604637aa (diff)
downloadtqt-c03a4800879ab62692e017e01c825ba12a421ad0.tar.gz
tqt-c03a4800879ab62692e017e01c825ba12a421ad0.zip
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/wizard/wizard.cpp')
-rw-r--r--examples/wizard/wizard.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/wizard/wizard.cpp b/examples/wizard/wizard.cpp
index 88da99e8a..22c61f477 100644
--- a/examples/wizard/wizard.cpp
+++ b/examples/wizard/wizard.cpp
@@ -19,7 +19,7 @@
#include <tqapplication.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 );
}