diff options
Diffstat (limited to 'src/widgets/tqpushbutton.cpp')
| -rw-r--r-- | src/widgets/tqpushbutton.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/widgets/tqpushbutton.cpp b/src/widgets/tqpushbutton.cpp index e264d2c1e..942d1b857 100644 --- a/src/widgets/tqpushbutton.cpp +++ b/src/widgets/tqpushbutton.cpp @@ -98,7 +98,7 @@ key in a dialog. You can change this with setAutoDefault(). Note that auto-default buttons reserve a little extra space which is necessary to draw a default-button indicator. If you do not want - this space around your buttons, call setAutoDefault(FALSE). + this space around your buttons, call setAutoDefault(false). Being so central, the button widget has grown to accommodate a great many variations in the past decade. The Microsoft style @@ -160,7 +160,7 @@ \property TQPushButton::autoDefault \brief whether the push button is the auto default button - If this property is set to TRUE then the push button is the auto + If this property is set to true then the push button is the auto default button in a dialog. In some GUI styles a default button is drawn with an extra frame @@ -168,8 +168,8 @@ space free around auto-default buttons, i.e. auto-default buttons may have a slightly larger size hint. - This property's default is TRUE for buttons that have a TQDialog - parent; otherwise it defaults to FALSE. + This property's default is true for buttons that have a TQDialog + parent; otherwise it defaults to false. See the \l default property for details of how \l default and auto-default interact. @@ -186,7 +186,7 @@ \property TQPushButton::default \brief whether the push button is the default button - If this property is set to TRUE then the push button will be + If this property is set to true then the push button will be pressed if the user presses the Enter (or Return) key in a dialog. Regardless of focus, if the user presses Enter: If there is a @@ -205,14 +205,14 @@ can always be clicked from the keyboard by pressing Enter (or Return) or the Spacebar when the button has focus. - This property's default is FALSE. + This property's default is false. */ /*! \property TQPushButton::flat \brief whether the border is disabled - This property's default is FALSE. + This property's default is false. */ /*! @@ -227,7 +227,7 @@ \brief whether the push button is toggled This property should only be set for toggle push buttons. The - default value is FALSE. + default value is false. \sa isOn(), toggle(), toggled(), isToggleButton() */ @@ -247,7 +247,7 @@ \brief whether the push button has a menu button on it \obsolete - If this property is set to TRUE, then a down arrow is drawn on the push + If this property is set to true, then a down arrow is drawn on the push button to indicate that a menu will pop up if the user clicks on the arrow. */ @@ -330,14 +330,14 @@ TQPushButton::~TQPushButton() void TQPushButton::init() { d = 0; - defButton = FALSE; - lastEnabled = FALSE; - hasMenuArrow = FALSE; - flt = FALSE; + defButton = false; + lastEnabled = false; + hasMenuArrow = false; + flt = false; #ifndef TQT_NO_DIALOG autoDefButton = ::tqt_cast<TQDialog*>(topLevelWidget()) != 0; #else - autoDefButton = FALSE; + autoDefButton = false; #endif setBackgroundMode( PaletteButton ); setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) ); @@ -345,8 +345,8 @@ void TQPushButton::init() /* - Makes the push button a toggle button if \a enable is TRUE or a normal - push button if \a enable is FALSE. + Makes the push button a toggle button if \a enable is true or a normal + push button if \a enable is false. Toggle buttons have an on/off state similar to \link TQCheckBox check boxes. \endlink A push button is initially not a toggle button. @@ -361,8 +361,8 @@ void TQPushButton::setToggleButton( bool enable ) /* - Switches a toggle button on if \a enable is TRUE or off if \a enable is - FALSE. + Switches a toggle button on if \a enable is true or off if \a enable is + false. \sa isOn(), toggle(), toggled(), isToggleButton() */ @@ -613,7 +613,7 @@ void TQPushButton::updateMask() void TQPushButton::focusInEvent( TQFocusEvent *e ) { if (autoDefButton && !defButton) { - defButton = TRUE; + defButton = true; #ifndef TQT_NO_DIALOG if ( defButton && ::tqt_cast<TQDialog*>(topLevelWidget()) ) ((TQDialog*)topLevelWidget())->setDefault( this ); @@ -637,7 +637,7 @@ void TQPushButton::focusOutEvent( TQFocusEvent *e ) TQButton::focusOutEvent( e ); #ifndef TQT_NO_POPUPMENU if ( popup() && popup()->isVisible() ) // restore pressed status - setDown( TRUE ); + setDown( true ); #endif } @@ -705,12 +705,12 @@ void TQPushButton::popupPressed() TQPopupMenu* popup = d ? (TQPopupMenu*) d->popup : 0; TQGuardedPtr<TQPushButton> that = this; if ( isDown() && popup ) { - bool horizontal = TRUE; - bool topLeft = TRUE; // ### always TRUE + bool horizontal = true; + bool topLeft = true; // ### always true #ifndef TQT_NO_TOOLBAR TQToolBar *tb = ::tqt_cast<TQToolBar*>(parentWidget()); if ( tb && tb->orientation() == Vertical ) - horizontal = FALSE; + horizontal = false; #endif if ( horizontal ) { if ( topLeft ) { @@ -738,7 +738,7 @@ void TQPushButton::popupPressed() } } if (that) - setDown( FALSE ); + setDown( false ); } } #endif |
