summaryrefslogtreecommitdiffstats
path: root/examples/wizard/wizard.cpp
diff options
context:
space:
mode:
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 );
}