summaryrefslogtreecommitdiffstats
path: root/tools/designer/examples/credit
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-30 14:27:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-06-25 16:43:08 +0900
commit35ced32e331ee29fda1642616c803637952f5b22 (patch)
treeda44726777f814e19c7ef1e43854f6a1693dd6fb /tools/designer/examples/credit
parent7dd4848d61e4c52091d6c644356c84c67536bde2 (diff)
downloadtqt-35ced32e.tar.gz
tqt-35ced32e.zip
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a7f1e6e2552d9cdbb3d76bff089db522248b9a24)
Diffstat (limited to 'tools/designer/examples/credit')
-rw-r--r--tools/designer/examples/credit/creditform.h2
-rw-r--r--tools/designer/examples/credit/creditformbase.cpp8
-rw-r--r--tools/designer/examples/credit/creditformbase.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/tools/designer/examples/credit/creditform.h b/tools/designer/examples/credit/creditform.h
index f8beb3581..938bcb10f 100644
--- a/tools/designer/examples/credit/creditform.h
+++ b/tools/designer/examples/credit/creditform.h
@@ -5,7 +5,7 @@ class CreditForm : public CreditFormBase
TQ_OBJECT
public:
CreditForm( TQWidget* parent = 0, const char* name = 0,
- bool modal = FALSE, WFlags fl = 0 );
+ bool modal = false, WFlags fl = 0 );
~CreditForm();
public slots:
void setAmount();
diff --git a/tools/designer/examples/credit/creditformbase.cpp b/tools/designer/examples/credit/creditformbase.cpp
index 372a756d3..79ed73d22 100644
--- a/tools/designer/examples/credit/creditformbase.cpp
+++ b/tools/designer/examples/credit/creditformbase.cpp
@@ -36,7 +36,7 @@ static TQPixmap uic_load_pixmap_CreditFormBase( const TQString &name )
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
+ * true to construct a modal dialog.
*/
CreditFormBase::CreditFormBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
: TQDialog( parent, name, modal, fl )
@@ -61,7 +61,7 @@ CreditFormBase::CreditFormBase( TQWidget* parent, const char* name, bool modal,
stdRadioButton = new TQRadioButton( creditButtonGroup, "stdRadioButton" );
stdRadioButton->setText( trUtf8( "&Standard", "" ) );
- stdRadioButton->setChecked( TRUE );
+ stdRadioButton->setChecked( true );
creditButtonGroupLayout->addWidget( stdRadioButton );
noneRadioButton = new TQRadioButton( creditButtonGroup, "noneRadioButton" );
@@ -74,7 +74,7 @@ CreditFormBase::CreditFormBase( TQWidget* parent, const char* name, bool modal,
CreditFormBaseLayout->addWidget( creditButtonGroup );
amountSpinBox = new TQSpinBox( this, "amountSpinBox" );
- amountSpinBox->setEnabled( FALSE );
+ amountSpinBox->setEnabled( false );
amountSpinBox->setPrefix( trUtf8( "$ ", "" ) );
amountSpinBox->setButtonSymbols( TQSpinBox::UpDownArrows );
amountSpinBox->setMaxValue( 100000 );
@@ -89,7 +89,7 @@ CreditFormBase::CreditFormBase( TQWidget* parent, const char* name, bool modal,
okPushButton = new TQPushButton( this, "okPushButton" );
okPushButton->setText( trUtf8( "OK", "" ) );
- okPushButton->setDefault( TRUE );
+ okPushButton->setDefault( true );
Layout4->addWidget( okPushButton );
TQSpacerItem* spacer_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
Layout4->addItem( spacer_2 );
diff --git a/tools/designer/examples/credit/creditformbase.h b/tools/designer/examples/credit/creditformbase.h
index 8d8b97c69..cae897357 100644
--- a/tools/designer/examples/credit/creditformbase.h
+++ b/tools/designer/examples/credit/creditformbase.h
@@ -24,7 +24,7 @@ class CreditFormBase : public TQDialog
TQ_OBJECT
public:
- CreditFormBase( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ CreditFormBase( TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
~CreditFormBase();
TQButtonGroup* creditButtonGroup;