summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqlistbox.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-26 11:44:58 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-30 14:26:34 +0900
commit6dd781c483eea56f51ae0eff47d857976b5d0f0d (patch)
tree0ddd4408e142ae6f8b13d3538359abd127988b2f /doc/man/man3/tqlistbox.3qt
parentff56b6fec14de4cd4b89d5b322531671d200b6e0 (diff)
downloadtqt-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/tqlistbox.3qt')
-rw-r--r--doc/man/man3/tqlistbox.3qt58
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/man/man3/tqlistbox.3qt b/doc/man/man3/tqlistbox.3qt
index a66dc52b9..29a57b342 100644
--- a/doc/man/man3/tqlistbox.3qt
+++ b/doc/man/man3/tqlistbox.3qt
@@ -247,7 +247,7 @@ Inherits TQScrollView.
.BI "TQListBoxItem * \fBfirstItem\fR () const"
.br
.ti -1c
-.BI "void \fBsort\fR ( bool ascending = TRUE )"
+.BI "void \fBsort\fR ( bool ascending = true )"
.br
.in -1c
.SS "Public Slots"
@@ -425,7 +425,7 @@ Because TQListBox offers multiple selection it must display keyboard focus and s
.PP
The list box normally arranges its items in a single column and adds a vertical scroll bar if required. It is possible to have a different fixed number of columns (setColumnMode()), or as many columns as will fit in the list box's assigned screen space (setColumnMode(FitToWidth)), or to have a fixed number of rows (setRowMode()) or as many rows as will fit in the list box's assigned screen space (setRowMode(FitToHeight)). In all these cases TQListBox will add scroll bars, as appropriate, in at least one direction.
.PP
-If multiple rows are used, each row can be as high as necessary (the normal setting), or you can request that all items will have the same height by calling setVariableHeight(FALSE). The same applies to a column's width, see setVariableWidth().
+If multiple rows are used, each row can be as high as necessary (the normal setting), or you can request that all items will have the same height by calling setVariableHeight(false). The same applies to a column's width, see setVariableWidth().
.PP
The TQListBox's items are TQListBoxItem objects. TQListBox provides methods to insert new items as strings, as pixmaps, and as TQListBoxItem * (insertItem() with various arguments), and to replace an existing item with a new string, pixmap or TQListBoxItem (changeItem() with various arguments). You can also remove items singly with removeItem() or clear() the entire list box. Note that if you create a TQListBoxItem yourself and insert it, TQListBox takes ownership of the item.
.PP
@@ -494,15 +494,15 @@ Destroys the list box. Deletes all list box items.
.SH "bool TQListBox::autoBottomScrollBar () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
-Returns TRUE if hScrollBarMode() is Auto; otherwise returns FALSE.
+Returns true if hScrollBarMode() is Auto; otherwise returns false.
.SH "bool TQListBox::autoScrollBar () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
-Returns TRUE if vScrollBarMode() is Auto; otherwise returns FALSE.
+Returns true if vScrollBarMode() is Auto; otherwise returns false.
.SH "bool TQListBox::bottomScrollBar () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
-Returns FALSE if vScrollBarMode() is AlwaysOff; otherwise returns TRUE.
+Returns false if vScrollBarMode() is AlwaysOff; otherwise returns true.
.SH "int TQListBox::cellHeight ( int i ) const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
@@ -741,15 +741,15 @@ See also insertItem() and insertStrList().
.SH "void TQListBox::invertSelection ()\fC [virtual slot]\fR"
Inverts the selection. Only works in Multi and Extended selection mode.
.SH "bool TQListBox::isMultiSelection () const"
-Returns TRUE if or not the list box is in Multi selection mode; otherwise returns FALSE. See the "multiSelection" property for details.
+Returns true if or not the list box is in Multi selection mode; otherwise returns false. See the "multiSelection" property for details.
.SH "bool TQListBox::isRubberSelecting () const\fC [protected]\fR"
-Returns TRUE if the user is selecting items using a rubber band rectangle; otherwise returns FALSE.
+Returns true if the user is selecting items using a rubber band rectangle; otherwise returns false.
.SH "bool TQListBox::isSelected ( int i ) const"
-Returns TRUE if item \fIi\fR is selected; otherwise returns FALSE.
+Returns true if item \fIi\fR is selected; otherwise returns false.
.SH "bool TQListBox::isSelected ( const TQListBoxItem * i ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Returns TRUE if item \fIi\fR is selected; otherwise returns FALSE.
+Returns true if item \fIi\fR is selected; otherwise returns false.
.SH "TQListBoxItem * TQListBox::item ( int index ) const"
Returns a pointer to the item at position \fIindex\fR, or 0 if \fIindex\fR is out of bounds.
.PP
@@ -767,15 +767,15 @@ If \fIindex\fR is too large, this function returns 0.
.SH "TQRect TQListBox::itemRect ( TQListBoxItem * item ) const"
Returns the rectangle on the screen that \fIitem\fR occupies in viewport()'s coordinates, or an invalid rectangle if \fIitem\fR is 0 or is not currently visible.
.SH "bool TQListBox::itemVisible ( int index )"
-Returns TRUE if the item at position \fIindex\fR is at least partly visible; otherwise returns FALSE.
+Returns true if the item at position \fIindex\fR is at least partly visible; otherwise returns false.
.SH "bool TQListBox::itemVisible ( const TQListBoxItem * item )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Returns TRUE if \fIitem\fR is at least partly visible; otherwise returns FALSE.
+Returns true if \fIitem\fR is at least partly visible; otherwise returns false.
.SH "bool TQListBox::itemYPos ( int index, int * yPos ) const\fC [protected]\fR"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
-Returns the vertical pixel-coordinate in \fI*yPos\fR, of the list box item at position \fIindex\fR in the list. Returns FALSE if the item is outside the visible area.
+Returns the vertical pixel-coordinate in \fI*yPos\fR, of the list box item at position \fIindex\fR in the list. Returns false if the item is outside the visible area.
.SH "long TQListBox::maxItemWidth () const"
Returns the width of the widest item in the list box.
.SH "void TQListBox::mouseButtonClicked ( int button, TQListBoxItem * item, const TQPoint & pos )\fC [signal]\fR"
@@ -843,9 +843,9 @@ Returns the row layout mode for this list box. See the "rowMode" property for de
.SH "bool TQListBox::scrollBar () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
-Returns FALSE if vScrollBarMode() is AlwaysOff; otherwise returns TRUE.
+Returns false if vScrollBarMode() is AlwaysOff; otherwise returns true.
.SH "void TQListBox::selectAll ( bool select )\fC [virtual slot]\fR"
-In Multi and Extended modes, this function sets all items to be selected if \fIselect\fR is TRUE, and to be unselected if \fIselect\fR is FALSE.
+In Multi and Extended modes, this function sets all items to be selected if \fIselect\fR is true, and to be unselected if \fIselect\fR is false.
.PP
In Single and NoSelection modes, this function only changes the selection status of currentItem().
.SH "void TQListBox::selected ( int index )\fC [signal]\fR"
@@ -885,11 +885,11 @@ Returns the selection mode of the list box. See the "selectionMode" property for
.SH "void TQListBox::setAutoBottomScrollBar ( bool enable )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
-If \fIenable\fR is TRUE sets setHScrollBarMode() to AlwaysOn; otherwise sets setHScrollBarMode() to AlwaysOff.
+If \fIenable\fR is true sets setHScrollBarMode() to AlwaysOn; otherwise sets setHScrollBarMode() to AlwaysOff.
.SH "void TQListBox::setAutoScrollBar ( bool enable )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
-If \fIenable\fR is TRUE sets setVScrollBarMode() to AlwaysOn; otherwise sets setVScrollBarMode() to AlwaysOff.
+If \fIenable\fR is true sets setVScrollBarMode() to AlwaysOn; otherwise sets setVScrollBarMode() to AlwaysOff.
.SH "void TQListBox::setBottomItem ( int index )\fC [virtual]\fR"
Scrolls the list box so the item at position \fIindex\fR in the list is displayed in the bottom row of the list box.
.PP
@@ -897,7 +897,7 @@ See also topItem.
.SH "void TQListBox::setBottomScrollBar ( bool enable )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
-If \fIenable\fR is TRUE sets setHScrollBarMode() to AlwaysOn; otherwise sets setHScrollBarMode() to AlwaysOff.
+If \fIenable\fR is true sets setHScrollBarMode() to AlwaysOn; otherwise sets setHScrollBarMode() to AlwaysOff.
.SH "void TQListBox::setColumnMode ( LayoutMode )\fC [virtual]\fR"
Sets the column layout mode for this list box. See the "columnMode" property for details.
.SH "void TQListBox::setColumnMode ( int )\fC [virtual]\fR"
@@ -917,19 +917,19 @@ Sets the row layout mode for this list box. See the "rowMode" property for detai
.SH "void TQListBox::setScrollBar ( bool enable )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
-If \fIenable\fR is TRUE sets setVScrollBarMode() to AlwaysOn; otherwise sets setVScrollBarMode() to AlwaysOff.
+If \fIenable\fR is true sets setVScrollBarMode() to AlwaysOn; otherwise sets setVScrollBarMode() to AlwaysOff.
.SH "void TQListBox::setSelected ( TQListBoxItem * item, bool select )\fC [virtual]\fR"
-Selects \fIitem\fR if \fIselect\fR is TRUE or unselects it if \fIselect\fR is FALSE, and repaints the item appropriately.
+Selects \fIitem\fR if \fIselect\fR is true or unselects it if \fIselect\fR is false, and repaints the item appropriately.
.PP
-If the list box is a Single selection list box and \fIselect\fR is TRUE, setSelected() calls setCurrentItem().
+If the list box is a Single selection list box and \fIselect\fR is true, setSelected() calls setCurrentItem().
.PP
-If the list box is a Single selection list box, \fIselect\fR is FALSE, setSelected() calls clearSelection().
+If the list box is a Single selection list box, \fIselect\fR is false, setSelected() calls clearSelection().
.PP
See also multiSelection, currentItem, clearSelection(), and currentItem.
.SH "void TQListBox::setSelected ( int index, bool select )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-If \fIselect\fR is TRUE the item at position \fIindex\fR is selected; otherwise the item is deselected.
+If \fIselect\fR is true the item at position \fIindex\fR is selected; otherwise the item is deselected.
.SH "void TQListBox::setSelectionMode ( SelectionMode )\fC [virtual]\fR"
Sets the selection mode of the list box. See the "selectionMode" property for details.
.SH "void TQListBox::setTopItem ( int index )\fC [virtual]\fR"
@@ -938,8 +938,8 @@ Sets the index of an item at the top of the screen to \fIindex\fR. See the "topI
Sets whether this list box has variable-height rows. See the "variableHeight" property for details.
.SH "void TQListBox::setVariableWidth ( bool )\fC [virtual]\fR"
Sets whether this list box has variable-width columns. See the "variableWidth" property for details.
-.SH "void TQListBox::sort ( bool ascending = TRUE )"
-If \fIascending\fR is TRUE sorts the items in ascending order; otherwise sorts in descending order.
+.SH "void TQListBox::sort ( bool ascending = true )"
+If \fIascending\fR is true sorts the items in ascending order; otherwise sorts in descending order.
.PP
To compare the items, the text (TQListBoxItem::text()) of the items is used.
.PP
@@ -967,7 +967,7 @@ Returns contentsHeight().
.PP
Returns contentsWidth().
.SH "void TQListBox::triggerUpdate ( bool doLayout )"
-Ensures that a single paint event will occur at the end of the current event loop iteration. If \fIdoLayout\fR is TRUE, the layout is also redone.
+Ensures that a single paint event will occur at the end of the current event loop iteration. If \fIdoLayout\fR is true, the layout is also redone.
.SH "void TQListBox::updateItem ( int index )\fC [protected]\fR"
Repaints the item at position \fIindex\fR in the list.
.SH "void TQListBox::updateItem ( TQListBoxItem * i )\fC [protected]\fR"
@@ -975,9 +975,9 @@ This is an overloaded member function, provided for convenience. It behaves esse
.PP
Repaints the TQListBoxItem \fIi\fR.
.SH "bool TQListBox::variableHeight () const"
-Returns TRUE if this list box has variable-height rows; otherwise returns FALSE. See the "variableHeight" property for details.
+Returns true if this list box has variable-height rows; otherwise returns false. See the "variableHeight" property for details.
.SH "bool TQListBox::variableWidth () const"
-Returns TRUE if this list box has variable-width columns; otherwise returns FALSE. See the "variableWidth" property for details.
+Returns true if this list box has variable-width columns; otherwise returns false. See the "variableWidth" property for details.
.SS "Property Documentation"
.SH "LayoutMode columnMode"
This property holds the column layout mode for this list box.
@@ -1012,9 +1012,9 @@ This property holds whether or not the list box is in Multi selection mode.
.PP
Consider using the TQListBox::selectionMode property instead of this property.
.PP
-When setting this property, Multi selection mode is used if set to TRUE and to Single selection mode if set to FALSE.
+When setting this property, Multi selection mode is used if set to true and to Single selection mode if set to false.
.PP
-When getting this property, TRUE is returned if the list box is in Multi selection mode or Extended selection mode, and FALSE if it is in Single selection mode or NoSelection mode.
+When getting this property, true is returned if the list box is in Multi selection mode or Extended selection mode, and false if it is in Single selection mode or NoSelection mode.
.PP
See also selectionMode.
.PP