diff options
Diffstat (limited to 'doc/man/man3/tqlistbox.3qt')
| -rw-r--r-- | doc/man/man3/tqlistbox.3qt | 58 | 
1 files changed, 29 insertions, 29 deletions
| diff --git a/doc/man/man3/tqlistbox.3qt b/doc/man/man3/tqlistbox.3qt index fe9ca6b35..211b292a4 100644 --- a/doc/man/man3/tqlistbox.3qt +++ b/doc/man/man3/tqlistbox.3qt @@ -247,7 +247,7 @@ Inherits QScrollView.  .BI "QListBoxItem * \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 QListBox offers multiple selection it must display keyboard focus and se  .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 QListBox 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 QListBox's items are QListBoxItem objects. QListBox provides methods to insert new items as strings, as pixmaps, and as QListBoxItem * (insertItem() with various arguments), and to replace an existing item with a new string, pixmap or QListBoxItem (changeItem() with various arguments). You can also remove items singly with removeItem() or clear() the entire list box. Note that if you create a QListBoxItem yourself and insert it, QListBox takes ownership of the item.  .PP @@ -494,15 +494,15 @@ Destroys the list box. Deletes all list box items.  .SH "bool QListBox::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 QListBox::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 QListBox::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 QListBox::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 QListBox::invertSelection ()\fC [virtual slot]\fR"  Inverts the selection. Only works in Multi and Extended selection mode.  .SH "bool QListBox::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 QListBox::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 QListBox::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 QListBox::isSelected ( const QListBoxItem * 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 "QListBoxItem * QListBox::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 "QRect QListBox::itemRect ( QListBoxItem * 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 QListBox::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 QListBox::itemVisible ( const QListBoxItem * 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 QListBox::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 QListBox::maxItemWidth () const"  Returns the width of the widest item in the list box.  .SH "void QListBox::mouseButtonClicked ( int button, QListBoxItem * item, const QPoint & 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 QListBox::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 QListBox::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 QListBox::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 QListBox::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 QListBox::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 QListBox::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 QListBox::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 QListBox::setColumnMode ( LayoutMode )\fC [virtual]\fR"  Sets the column layout mode for this list box. See the "columnMode" property for details.  .SH "void QListBox::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 QListBox::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 QListBox::setSelected ( QListBoxItem * 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 QListBox::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 QListBox::setSelectionMode ( SelectionMode )\fC [virtual]\fR"  Sets the selection mode of the list box. See the "selectionMode" property for details.  .SH "void QListBox::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 QListBox::setVariableWidth ( bool )\fC [virtual]\fR"  Sets whether this list box has variable-width columns. See the "variableWidth" property for details. -.SH "void QListBox::sort ( bool ascending = TRUE )" -If \fIascending\fR is TRUE sorts the items in ascending order; otherwise sorts in descending order. +.SH "void QListBox::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 (QListBoxItem::text()) of the items is used.  .PP @@ -967,7 +967,7 @@ Returns contentsHeight().  .PP  Returns contentsWidth().  .SH "void QListBox::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 QListBox::updateItem ( int index )\fC [protected]\fR"  Repaints the item at position \fIindex\fR in the list.  .SH "void QListBox::updateItem ( QListBoxItem * i )\fC [protected]\fR" @@ -975,9 +975,9 @@ This is an overloaded member function, provided for convenience. It behaves esse  .PP  Repaints the QListBoxItem \fIi\fR.  .SH "bool QListBox::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 QListBox::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 QListBox::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 | 
