summaryrefslogtreecommitdiffstats
path: root/src/widgets/tqgroupbox.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-26 14:08:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-27 22:38:28 +0900
commit50326e196a9245af21604da7dc3a36eea52784ed (patch)
tree955f50c739379c59d3846c5c6ec25c8f5856fb91 /src/widgets/tqgroupbox.cpp
parent854c5d5c9cfd48a2d5a17366fb6805219eab4859 (diff)
downloadtqt-50326e196a9245af21604da7dc3a36eea52784ed.tar.gz
tqt-50326e196a9245af21604da7dc3a36eea52784ed.zip
Replace TRUE/FALSE with boolean values true/false - part 10
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/widgets/tqgroupbox.cpp')
-rw-r--r--src/widgets/tqgroupbox.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/widgets/tqgroupbox.cpp b/src/widgets/tqgroupbox.cpp
index b969f18ac..845c689ad 100644
--- a/src/widgets/tqgroupbox.cpp
+++ b/src/widgets/tqgroupbox.cpp
@@ -199,7 +199,7 @@ void TQGroupBox::init()
dir = Horizontal;
marg = 11;
spac = 5;
- bFlat = FALSE;
+ bFlat = false;
}
void TQGroupBox::setTextSpacer()
@@ -384,7 +384,7 @@ void TQGroupBox::paintEvent( TQPaintEvent *event )
TQPoint p1( fr.x(), fr.y() + 1 );
TQPoint p2( fr.x() + fr.width(), p1.y() );
// ### This should probably be a style primitive.
- qDrawShadeLine( &paint, p1, p2, colorGroup(), TRUE,
+ qDrawShadeLine( &paint, p1, p2, colorGroup(), true,
lineWidth(), midLineWidth() );
} else {
drawFrame(&paint);
@@ -611,10 +611,10 @@ void TQGroupBox::childEvent( TQChildEvent *c )
return;
if ( d->checkbox->isChecked() ) {
if ( !w->testWState( WState_ForceDisabled ) )
- w->setEnabled( TRUE );
+ w->setEnabled( true );
} else {
if ( w->isEnabled() ) {
- w->setEnabled( FALSE );
+ w->setEnabled( false );
((TQGroupBox*)w)->clearWState( WState_ForceDisabled );
}
}
@@ -825,7 +825,7 @@ void TQGroupBox::setFlat( bool b )
\property TQGroupBox::checkable
\brief Whether the group box has a checkbox in its title.
- If this property is TRUE, the group box has a checkbox. If the
+ If this property is true, the group box has a checkbox. If the
checkbox is checked (which is the default), the group box's
children are enabled.
@@ -844,8 +844,8 @@ void TQGroupBox::setCheckable( bool b )
d->checkbox = new TQCheckBox( title(), this, "qt_groupbox_checkbox" );
if (TQButtonGroup *meAsButtonGroup = ::tqt_cast<TQButtonGroup*>(this))
meAsButtonGroup->remove(d->checkbox);
- setChecked( TRUE );
- setChildrenEnabled( TRUE );
+ setChecked( true );
+ setChildrenEnabled( true );
connect( d->checkbox, TQ_SIGNAL( toggled(bool) ),
this, TQ_SLOT( setChildrenEnabled(bool) ) );
connect( d->checkbox, TQ_SIGNAL( toggled(bool) ),
@@ -854,7 +854,7 @@ void TQGroupBox::setCheckable( bool b )
}
d->checkbox->show();
} else {
- setChildrenEnabled( TRUE );
+ setChildrenEnabled( true );
delete d->checkbox;
d->checkbox = 0;
}
@@ -869,7 +869,7 @@ bool TQGroupBox::isCheckable() const
#ifndef TQT_NO_CHECKBOX
return ( d->checkbox != 0 );
#else
- return FALSE;
+ return false;
#endif
}
@@ -879,7 +879,7 @@ bool TQGroupBox::isChecked() const
#ifndef TQT_NO_CHECKBOX
return d->checkbox && d->checkbox->isChecked();
#else
- return FALSE;
+ return false;
#endif
}
@@ -888,8 +888,8 @@ bool TQGroupBox::isChecked() const
\fn void TQGroupBox::toggled( bool on )
If the group box has a check box (see \l isCheckable()) this signal
- is emitted when the check box is toggled. \a on is TRUE if the check
- box is checked; otherwise it is FALSE.
+ is emitted when the check box is toggled. \a on is true if the check
+ box is checked; otherwise it is false.
*/
/*!
@@ -929,10 +929,10 @@ void TQGroupBox::setChildrenEnabled( bool b )
TQWidget *w = (TQWidget*)o;
if ( b ) {
if ( !w->testWState( WState_ForceDisabled ) )
- w->setEnabled( TRUE );
+ w->setEnabled( true );
} else {
if ( w->isEnabled() ) {
- w->setEnabled( FALSE );
+ w->setEnabled( false );
((TQGroupBox*)w)->clearWState( WState_ForceDisabled );
}
}
@@ -950,7 +950,7 @@ void TQGroupBox::setEnabled(bool on)
#ifndef TQT_NO_CHECKBOX
// we are being enabled - disable children
if ( !d->checkbox->isChecked() )
- setChildrenEnabled( FALSE );
+ setChildrenEnabled( false );
#endif
}