summaryrefslogtreecommitdiffstats
path: root/src/widgets/tqcheckbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/tqcheckbox.cpp')
-rw-r--r--src/widgets/tqcheckbox.cpp16
1 files changed, 8 insertions, 8 deletions
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()));