summaryrefslogtreecommitdiffstats
path: root/examples/lineedits
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 09:01:42 +0900
commit81ade129093a279e6537db25710583fd2bba9427 (patch)
treea210834cbccc8aee2e9de7a8b7f41e1d31e2ced0 /examples/lineedits
parent35ced32e331ee29fda1642616c803637952f5b22 (diff)
downloadtqt-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/lineedits')
-rw-r--r--examples/lineedits/lineedits.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/lineedits/lineedits.cpp b/examples/lineedits/lineedits.cpp
index 6e778c62d..404b03341 100644
--- a/examples/lineedits/lineedits.cpp
+++ b/examples/lineedits/lineedits.cpp
@@ -38,7 +38,7 @@ LineEdits::LineEdits( TQWidget *parent, const char *name )
row1->addWidget( label );
// Create a Combobox with three items...
- combo1 = new TQComboBox( FALSE, this );
+ combo1 = new TQComboBox( false, this );
row1->addWidget( combo1 );
combo1->insertItem( "Normal" );
combo1->insertItem( "Password" );
@@ -60,7 +60,7 @@ LineEdits::LineEdits( TQWidget *parent, const char *name )
row2->addWidget( label );
// A second Combobox with again three items...
- combo2 = new TQComboBox( FALSE, this );
+ combo2 = new TQComboBox( false, this );
row2->addWidget( combo2 );
combo2->insertItem( "No Validator" );
combo2->insertItem( "Integer Validator" );
@@ -81,7 +81,7 @@ LineEdits::LineEdits( TQWidget *parent, const char *name )
row3->addWidget( label );
// A combo box for setting alignment
- combo3 = new TQComboBox( FALSE, this );
+ combo3 = new TQComboBox( false, this );
row3->addWidget( combo3 );
combo3->insertItem( "Left" );
combo3->insertItem( "Centered" );
@@ -102,7 +102,7 @@ LineEdits::LineEdits( TQWidget *parent, const char *name )
row4->addWidget( label );
// A combo box for choosing an input mask
- combo4 = new TQComboBox( FALSE, this );
+ combo4 = new TQComboBox( false, this );
row4->addWidget( combo4 );
combo4->insertItem( "No mask" );
combo4->insertItem( "Phone number" );
@@ -126,7 +126,7 @@ LineEdits::LineEdits( TQWidget *parent, const char *name )
(void)new TQLabel( "Read-Only: ", row5 );
// A combo box for setting alignment
- combo5 = new TQComboBox( FALSE, row5 );
+ combo5 = new TQComboBox( false, row5 );
combo5->insertItem( "False" );
combo5->insertItem( "True" );
// ...and again the activated() TQ_SIGNAL gets connected with a TQ_SLOT
@@ -260,10 +260,10 @@ void LineEdits::slotReadOnlyChanged( int i )
{
switch ( i ) {
case 0:
- lined5->setReadOnly( FALSE );
+ lined5->setReadOnly( false );
break;
case 1:
- lined5->setReadOnly( TRUE );
+ lined5->setReadOnly( true );
break;
}