diff options
Diffstat (limited to 'src/widgets/tqbuttongroup.cpp')
| -rw-r--r-- | src/widgets/tqbuttongroup.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/widgets/tqbuttongroup.cpp b/src/widgets/tqbuttongroup.cpp index 9b495279c..44567ffc6 100644 --- a/src/widgets/tqbuttongroup.cpp +++ b/src/widgets/tqbuttongroup.cpp @@ -98,16 +98,16 @@ \property TQButtonGroup::exclusive \brief whether the button group is exclusive - If this property is TRUE, then the buttons in the group are + If this property is true, then the buttons in the group are toggled, and to untoggle a button you must click on another button - in the group. The default value is FALSE. + in the group. The default value is false. */ /*! \property TQButtonGroup::radioButtonExclusive \brief whether the radio buttons in the group are exclusive - If this property is TRUE (the default), the \link TQRadioButton + If this property is true (the default), the \link TQRadioButton radiobuttons\endlink in the group are treated exclusively. */ @@ -197,9 +197,9 @@ void TQButtonGroup::init() { buttons = new TQButtonList; TQ_CHECK_PTR( buttons ); - buttons->setAutoDelete( TRUE ); - excl_grp = FALSE; - radio_excl = TRUE; + buttons->setAutoDelete( true ); + excl_grp = false; + radio_excl = true; } /*! \reimp */ @@ -445,12 +445,12 @@ void TQButtonGroup::buttonToggled( bool on ) if ( !excl_grp && !::tqt_cast<TQRadioButton*>(bt) ) return; TQButtonItem * i = buttons->first(); - bool hasTabFocus = FALSE; + bool hasTabFocus = false; - while( i != 0 && hasTabFocus == FALSE ) { + while( i != 0 && hasTabFocus == false ) { if ( ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) && (i->button->focusPolicy() & TabFocus) ) - hasTabFocus = TRUE; + hasTabFocus = true; i = buttons->next(); } @@ -460,7 +460,7 @@ void TQButtonGroup::buttonToggled( bool on ) i->button->isToggleButton() && i->button->isOn() && ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) ) - i->button->setOn( FALSE ); + i->button->setOn( false ); if ( ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) && i->button->isToggleButton() && hasTabFocus ) @@ -479,7 +479,7 @@ void TQButtonGroup::setButton( int id ) { TQButton * b = find( id ); if ( b ) - b->setOn( TRUE ); + b->setOn( true ); } void TQButtonGroup::setRadioButtonExclusive( bool on) @@ -583,7 +583,7 @@ void TQButtonGroup::moveFocus( int key ) candidate->setFocusPolicy( (FocusPolicy)(candidate->focusPolicy()| TabFocus) ); } - buttoncand->setOn( TRUE ); + buttoncand->setOn( true ); buttoncand->animateClick(); buttoncand->animateTimeout(); // ### crude l&f hack } |
