summaryrefslogtreecommitdiffstats
path: root/examples/buttongroups/buttongroups.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/buttongroups/buttongroups.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/buttongroups/buttongroups.cpp')
-rw-r--r--examples/buttongroups/buttongroups.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/buttongroups/buttongroups.cpp b/examples/buttongroups/buttongroups.cpp
index 0e52587ea..543994cce 100644
--- a/examples/buttongroups/buttongroups.cpp
+++ b/examples/buttongroups/buttongroups.cpp
@@ -36,11 +36,11 @@ ButtonsGroups::ButtonsGroups( TQWidget *parent, const char *name )
// Create an exclusive button group
TQButtonGroup *bgrp1 = new TQButtonGroup( 1, TQGroupBox::Horizontal, "Button Group 1 (exclusive)", this);
box1->addWidget( bgrp1 );
- bgrp1->setExclusive( TRUE );
+ bgrp1->setExclusive( true );
// insert 3 radiobuttons
TQRadioButton *rb11 = new TQRadioButton( "&Radiobutton 1", bgrp1 );
- rb11->setChecked( TRUE );
+ rb11->setChecked( true );
(void)new TQRadioButton( "R&adiobutton 2", bgrp1 );
(void)new TQRadioButton( "Ra&diobutton 3", bgrp1 );
@@ -49,32 +49,32 @@ ButtonsGroups::ButtonsGroups( TQWidget *parent, const char *name )
// Create a non-exclusive buttongroup
TQButtonGroup *bgrp2 = new TQButtonGroup( 1, TQGroupBox::Horizontal, "Button Group 2 (non-exclusive)", this );
box1->addWidget( bgrp2 );
- bgrp2->setExclusive( FALSE );
+ bgrp2->setExclusive( false );
// insert 3 checkboxes
(void)new TQCheckBox( "&Checkbox 1", bgrp2 );
TQCheckBox *cb12 = new TQCheckBox( "C&heckbox 2", bgrp2 );
- cb12->setChecked( TRUE );
+ cb12->setChecked( true );
TQCheckBox *cb13 = new TQCheckBox( "Triple &State Button", bgrp2 );
- cb13->setTristate( TRUE );
- cb13->setChecked( TRUE );
+ cb13->setTristate( true );
+ cb13->setChecked( true );
// ------------ third group
// create a buttongroup which is exclusive for radiobuttons and non-exclusive for all other buttons
TQButtonGroup *bgrp3 = new TQButtonGroup( 1, TQGroupBox::Horizontal, "Button Group 3 (Radiobutton-exclusive)", this );
box2->addWidget( bgrp3 );
- bgrp3->setRadioButtonExclusive( TRUE );
+ bgrp3->setRadioButtonExclusive( true );
// insert three radiobuttons
rb21 = new TQRadioButton( "Rad&iobutton 1", bgrp3 );
rb22 = new TQRadioButton( "Radi&obutton 2", bgrp3 );
rb23 = new TQRadioButton( "Radio&button 3", bgrp3 );
- rb23->setChecked( TRUE );
+ rb23->setChecked( true );
// insert a checkbox...
state = new TQCheckBox( "E&nable Radiobuttons", bgrp3 );
- state->setChecked( TRUE );
+ state->setChecked( true );
// ...and connect its TQ_SIGNAL clicked() with the TQ_SLOT slotChangeGrp3State()
connect( state, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotChangeGrp3State() ) );
@@ -89,12 +89,12 @@ ButtonsGroups::ButtonsGroups( TQWidget *parent, const char *name )
// now make the second one a toggle button
TQPushButton *tb2 = new TQPushButton( "&Toggle Button", bgrp4, "toggle" );
- tb2->setToggleButton( TRUE );
- tb2->setOn( TRUE );
+ tb2->setToggleButton( true );
+ tb2->setOn( true );
// ... and make the third one a flat button
TQPushButton *tb3 = new TQPushButton( "&Flat Button", bgrp4, "flat" );
- tb3->setFlat(TRUE);
+ tb3->setFlat(true);
// .. and the fourth a button with a menu
TQPushButton *tb4 = new TQPushButton( "Popup Button", bgrp4, "popup" );