diff options
Diffstat (limited to 'src/widgets/tqradiobutton.cpp')
| -rw-r--r-- | src/widgets/tqradiobutton.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/widgets/tqradiobutton.cpp b/src/widgets/tqradiobutton.cpp index b296f5d79..adf7e9def 100644 --- a/src/widgets/tqradiobutton.cpp +++ b/src/widgets/tqradiobutton.cpp @@ -91,7 +91,7 @@ This property will not effect any other radio buttons unless they have been placed in the same TQButtonGroup. The default value is - FALSE (unchecked). + false (unchecked). */ /*! @@ -137,11 +137,11 @@ TQRadioButton::TQRadioButton( const TQString &text, TQWidget *parent, void TQRadioButton::init() { setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) ); - setToggleButton( TRUE ); + setToggleButton( true ); #ifndef TQT_NO_BUTTONGROUP TQButtonGroup *bgrp = ::tqt_cast<TQButtonGroup*>(parentWidget()); if ( bgrp ) - bgrp->setRadioButtonExclusive( TRUE ); + bgrp->setRadioButtonExclusive( true ); #endif } @@ -163,7 +163,7 @@ TQSize TQRadioButton::sizeHint() const constPolish(); TQPainter p(this); - TQSize sz = style().itemRect(&p, TQRect(0, 0, 1, 1), ShowPrefix, FALSE, + TQSize sz = style().itemRect(&p, TQRect(0, 0, 1, 1), ShowPrefix, false, pixmap(), text()).size(); return (style().sizeFromContents(TQStyle::CT_RadioButton, this, sz). @@ -225,7 +225,7 @@ void TQRadioButton::drawButton( TQPainter *paint ) p->drawPixmap( irect.topLeft(), *pm ); return; } - bool use_pm = TRUE; + bool use_pm = true; TQPainter pmpaint; int wx, wy; if ( use_pm ) { @@ -315,7 +315,7 @@ void TQRadioButton::resizeEvent( TQResizeEvent* e ) TQButton::resizeEvent(e); if ( isVisible() ) { TQPainter p(this); - TQSize isz = style().itemRect(&p, TQRect(0, 0, 1, 1), ShowPrefix, FALSE, + TQSize isz = style().itemRect(&p, TQRect(0, 0, 1, 1), ShowPrefix, false, pixmap(), text()).size(); TQSize wsz = (style().sizeFromContents(TQStyle::CT_RadioButton, this, isz). expandedTo(TQApplication::globalStrut())); |
