diff options
Diffstat (limited to 'src/widgets/qbuttongroup.cpp')
-rw-r--r-- | src/widgets/qbuttongroup.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/widgets/qbuttongroup.cpp b/src/widgets/qbuttongroup.cpp index c94ba0378..5745cd3ff 100644 --- a/src/widgets/qbuttongroup.cpp +++ b/src/widgets/qbuttongroup.cpp @@ -410,7 +410,7 @@ void TQButtonGroup::buttonClicked() { // introduce a TQButtonListIt if calling anything int id = -1; - TQButton *bt = ::qt_cast<TQButton*>(sender()); // object that sent the signal + TQButton *bt = ::tqt_cast<TQButton*>(sender()); // object that sent the signal #if defined(QT_CHECK_NULL) Q_ASSERT( bt ); #endif @@ -436,19 +436,19 @@ void TQButtonGroup::buttonToggled( bool on ) // introduce a TQButtonListIt if calling anything if ( !on || !excl_grp && !radio_excl ) return; - TQButton *bt = ::qt_cast<TQButton*>(sender()); // object that sent the signal + TQButton *bt = ::tqt_cast<TQButton*>(sender()); // object that sent the signal #if defined(QT_CHECK_NULL) Q_ASSERT( bt ); Q_ASSERT( bt->isToggleButton() ); #endif - if ( !excl_grp && !::qt_cast<TQRadioButton*>(bt) ) + if ( !excl_grp && !::tqt_cast<TQRadioButton*>(bt) ) return; TQButtonItem * i = buttons->first(); bool hasTabFocus = FALSE; while( i != 0 && hasTabFocus == FALSE ) { - if ( ( excl_grp || ::qt_cast<TQRadioButton*>(i->button) ) && + if ( ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) && (i->button->focusPolicy() & TabFocus) ) hasTabFocus = TRUE; i = buttons->next(); @@ -459,9 +459,9 @@ void TQButtonGroup::buttonToggled( bool on ) if ( bt != i->button && i->button->isToggleButton() && i->button->isOn() && - ( excl_grp || ::qt_cast<TQRadioButton*>(i->button) ) ) + ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) ) i->button->setOn( FALSE ); - if ( ( excl_grp || ::qt_cast<TQRadioButton*>(i->button) ) && + if ( ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) && i->button->isToggleButton() && hasTabFocus ) i->button->setFocusPolicy( (FocusPolicy)(i->button->focusPolicy() & @@ -572,12 +572,12 @@ void TQButtonGroup::moveFocus( int key ) i = buttons->next(); } - TQButton *buttoncand = ::qt_cast<TQButton*>(candidate); - if ( buttoncand && ::qt_cast<TQButton*>(f) && + TQButton *buttoncand = ::tqt_cast<TQButton*>(candidate); + if ( buttoncand && ::tqt_cast<TQButton*>(f) && ((TQButton*)f)->isOn() && buttoncand->isToggleButton() && - ( isExclusive() || ( ::qt_cast<TQRadioButton*>(f) && - ::qt_cast<TQRadioButton*>(candidate)))) { + ( isExclusive() || ( ::tqt_cast<TQRadioButton*>(f) && + ::tqt_cast<TQRadioButton*>(candidate)))) { if ( f->focusPolicy() & TabFocus ) { f->setFocusPolicy( (FocusPolicy)(f->focusPolicy() & ~TabFocus) ); candidate->setFocusPolicy( (FocusPolicy)(candidate->focusPolicy()| @@ -669,7 +669,7 @@ bool TQButtonGroup::event( TQEvent * e ) { if ( e->type() == TQEvent::ChildInserted ) { TQChildEvent * ce = (TQChildEvent *) e; - if ( radio_excl && ::qt_cast<TQRadioButton*>(ce->child()) ) { + if ( radio_excl && ::tqt_cast<TQRadioButton*>(ce->child()) ) { TQButton * button = (TQButton *) ce->child(); if ( button->isToggleButton() && !button->isOn() && selected() && (selected()->focusPolicy() & TabFocus) != 0 ) |