From 50326e196a9245af21604da7dc3a36eea52784ed Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 26 Dec 2025 14:08:52 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 10 Signed-off-by: Michele Calgaro --- src/widgets/tqcheckbox.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/widgets/tqcheckbox.cpp') diff --git a/src/widgets/tqcheckbox.cpp b/src/widgets/tqcheckbox.cpp index 6b0cc48a6..488e187dc 100644 --- a/src/widgets/tqcheckbox.cpp +++ b/src/widgets/tqcheckbox.cpp @@ -100,7 +100,7 @@ \property TQCheckBox::checked \brief whether the checkbox is checked - The default is unchecked, i.e. FALSE. + The default is unchecked, i.e. false. */ /*! @@ -114,7 +114,7 @@ \property TQCheckBox::tristate \brief whether the checkbox is a tri-state checkbox - The default is two-state, i.e. tri-state is FALSE. + The default is two-state, i.e. tri-state is false. */ /*! @@ -127,7 +127,7 @@ TQCheckBox::TQCheckBox( TQWidget *parent, const char *name ) : TQButton( parent, name, WNoAutoErase | WMouseNoMask ) { - setToggleButton( TRUE ); + setToggleButton( true ); setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) ); } @@ -142,7 +142,7 @@ TQCheckBox::TQCheckBox( const TQString &text, TQWidget *parent, const char *name : TQButton( parent, name, WNoAutoErase | WMouseNoMask ) { setText( text ); - setToggleButton( TRUE ); + setToggleButton( true ); setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) ); } @@ -153,7 +153,7 @@ TQCheckBox::TQCheckBox( const TQString &text, TQWidget *parent, const char *name */ void TQCheckBox::setNoChange() { - setTristate(TRUE); + setTristate(true); setState( NoChange ); } @@ -176,7 +176,7 @@ TQSize TQCheckBox::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_CheckBox, this, sz). @@ -220,7 +220,7 @@ void TQCheckBox::drawButton( TQPainter *paint ) drawButtonLabel( p ); return; } - bool use_pm = TRUE; + bool use_pm = true; TQPainter pmpaint; int wx = 0, wy = 0; if ( use_pm ) { @@ -310,7 +310,7 @@ void TQCheckBox::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_CheckBox, this, isz). expandedTo(TQApplication::globalStrut())); -- cgit v1.2.3