diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-26 11:44:58 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-30 14:26:34 +0900 |
commit | 6dd781c483eea56f51ae0eff47d857976b5d0f0d (patch) | |
tree | 0ddd4408e142ae6f8b13d3538359abd127988b2f /doc/man/man3/tqpushbutton.3qt | |
parent | ff56b6fec14de4cd4b89d5b322531671d200b6e0 (diff) | |
download | tqt-6dd781c483eea56f51ae0eff47d857976b5d0f0d.tar.gz tqt-6dd781c483eea56f51ae0eff47d857976b5d0f0d.zip |
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqpushbutton.3qt')
-rw-r--r-- | doc/man/man3/tqpushbutton.3qt | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/man/man3/tqpushbutton.3qt b/doc/man/man3/tqpushbutton.3qt index 57f495f90..8b6e3e697 100644 --- a/doc/man/man3/tqpushbutton.3qt +++ b/doc/man/man3/tqpushbutton.3qt @@ -184,7 +184,7 @@ Push buttons can display a textual label or a pixmap, and optionally a small ico .PP A push button emits the signal clicked() when it is activated by the mouse, the Spacebar or by a keyboard accelerator. Connect to this signal to perform the button's action. Push buttons also provide less commonly used signals, for example, pressed() and released(). .PP -Command buttons in dialogs are by default auto-default buttons, i.e. they become the default push button automatically when they receive the keyboard input focus. A default button is a push button that is activated when the user presses the Enter or Return 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). +Command buttons in dialogs are by default auto-default buttons, i.e. they become the default push button automatically when they receive the keyboard input focus. A default button is a push button that is activated when the user presses the Enter or Return 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). .PP Being so central, the button widget has grown to accommodate a great many variations in the past decade. The Microsoft style guide now shows about ten different states of Windows push buttons and the text implies that there are dozens more when all the combinations of features are taken into consideration. .PP @@ -238,9 +238,9 @@ Destroys the push button. .SH "TQKeySequence TQButton::accel () const" Returns the accelerator associated with the button. See the "accel" property for details. .SH "bool TQPushButton::autoDefault () const" -Returns TRUE if the push button is the auto default button; otherwise returns FALSE. See the "autoDefault" property for details. +Returns true if the push button is the auto default button; otherwise returns false. See the "autoDefault" property for details. .SH "bool TQButton::autoRepeat () const" -Returns TRUE if autoRepeat is enabled; otherwise returns FALSE. See the "autoRepeat" property for details. +Returns true if autoRepeat is enabled; otherwise returns false. See the "autoRepeat" property for details. .SH "void TQButton::clicked ()\fC [signal]\fR" This signal is emitted when the button is activated (i.e. first pressed down and then released when the mouse cursor is inside the button), when the accelerator key is typed or when animateClick() is called. This signal is \fInot\fR emitted if you call setDown(). .PP @@ -261,19 +261,19 @@ See also TQButtonGroup. .SH "TQIconSet * TQPushButton::iconSet () const" Returns the icon set on the push button. See the "iconSet" property for details. .SH "bool TQPushButton::isDefault () const" -Returns TRUE if the push button is the default button; otherwise returns FALSE. See the "default" property for details. +Returns true if the push button is the default button; otherwise returns false. See the "default" property for details. .SH "bool TQButton::isDown () const" -Returns TRUE if the button is pressed; otherwise returns FALSE. See the "down" property for details. +Returns true if the button is pressed; otherwise returns false. See the "down" property for details. .SH "bool TQButton::isExclusiveToggle () const" -Returns TRUE if the button is an exclusive toggle; otherwise returns FALSE. See the "exclusiveToggle" property for details. +Returns true if the button is an exclusive toggle; otherwise returns false. See the "exclusiveToggle" property for details. .SH "bool TQPushButton::isFlat () const" -Returns TRUE if the border is disabled; otherwise returns FALSE. See the "flat" property for details. +Returns true if the border is disabled; otherwise returns false. See the "flat" property for details. .SH "bool TQPushButton::isMenuButton () const" -Returns TRUE if the push button has a menu button on it; otherwise returns FALSE. See the "menuButton" property for details. +Returns true if the push button has a menu button on it; otherwise returns false. See the "menuButton" property for details. .SH "bool TQButton::isOn () const" -Returns TRUE if the button is toggled; otherwise returns FALSE. See the "on" property for details. +Returns true if the button is toggled; otherwise returns false. See the "on" property for details. .SH "bool TQButton::isToggleButton () const" -Returns TRUE if the button is a toggle button; otherwise returns FALSE. See the "toggleButton" property for details. +Returns true if the button is a toggle button; otherwise returns false. See the "toggleButton" property for details. .SH "const TQPixmap * TQButton::pixmap () const" Returns the pixmap shown on the button. See the "pixmap" property for details. .SH "TQPopupMenu * TQPushButton::popup () const" @@ -339,7 +339,7 @@ Toggles the state of a toggle button. .PP See also on, on, toggled(), and toggleButton. .SH "void TQButton::toggled ( bool on )\fC [signal]\fR" -This signal is emitted whenever a toggle button changes status. \fIon\fR is TRUE if the button is on, or FALSE if the button is off. +This signal is emitted whenever a toggle button changes status. \fIon\fR is true if the button is on, or false if the button is off. .PP This may be the result of a user action, toggle() slot activation, or because setOn() was called. .PP @@ -356,11 +356,11 @@ Set this property's value with setAccel() and get this property's value with acc .SH "bool autoDefault" This property holds whether the push button is the auto default button. .PP -If this property is set to TRUE then the push button is the auto default button in a dialog. +If this property is set to true then the push button is the auto default button in a dialog. .PP In some GUI styles a default button is drawn with an extra frame around it, up to 3 pixels or more. TQt automatically keeps this space free around auto-default buttons, i.e. auto-default buttons may have a slightly larger size hint. .PP -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. .PP See the default property for details of how default and auto-default interact. .PP @@ -378,7 +378,7 @@ Set this property's value with setAutoRepeat() and get this property's value wit .SH "bool default" This property holds whether the push button is the default button. .PP -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. +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. .PP Regardless of focus, if the user presses Enter: If there is a default button the default button is pressed; otherwise, if there are one or more autoDefault buttons the first autoDefault button that is next in the tab order is pressed. If there are no default or autoDefault buttons only pressing Space on a button with focus, mouse clicking, or using an accelerator will press a button. .PP @@ -386,13 +386,13 @@ In a dialog, only one push button at a time can be the default button. This butt .PP The default button behavior is provided only in dialogs. Buttons can always be clicked from the keyboard by pressing Enter (or Return) or the Spacebar when the button has focus. .PP -This property's default is FALSE. +This property's default is false. .PP Set this property's value with setDefault() and get this property's value with isDefault(). .SH "bool flat" This property holds whether the border is disabled. .PP -This property's default is FALSE. +This property's default is false. .PP Set this property's value with setFlat() and get this property's value with isFlat(). .SH "TQIconSet iconSet" @@ -406,13 +406,13 @@ This property holds whether the push button has a menu button on it. .PP \fBThis property is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP -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. +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. .PP Get this property's value with isMenuButton(). .SH "bool on" This property holds whether the push button is toggled. .PP -This property should only be set for toggle push buttons. The default value is FALSE. +This property should only be set for toggle push buttons. The default value is false. .PP See also on, toggle(), toggled(), and toggleButton. .PP |