diff options
Diffstat (limited to 'doc/html/tqlistviewitem.html')
-rw-r--r-- | doc/html/tqlistviewitem.html | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/doc/html/tqlistviewitem.html b/doc/html/tqlistviewitem.html index c303700e0..ea4621cab 100644 --- a/doc/html/tqlistviewitem.html +++ b/doc/html/tqlistviewitem.html @@ -201,8 +201,8 @@ view's font changes, for example. <td valign="top">Called whenever the user clicks on the item or presses Space when the item is the current item. </table></center> -<p> Some subclasses call <a href="#setExpandable">setExpandable</a>(TRUE) even when they have no -children, and populate themselves when <a href="#setup">setup</a>() or <a href="#setOpen">setOpen</a>(TRUE) is +<p> Some subclasses call <a href="#setExpandable">setExpandable</a>(true) even when they have no +children, and populate themselves when <a href="#setup">setup</a>() or <a href="#setOpen">setOpen</a>(true) is called. The <a href="dirview-example.html">dirview/dirview.cpp</a> example program uses this technique to start up quickly: The files and subdirectories in a directory aren't inserted into the tree until they're actually @@ -269,8 +269,8 @@ allocated resources. <h3 class=fn>bool <a name="acceptDrop"></a>TQListViewItem::acceptDrop ( const <a href="tqmimesource.html">TQMimeSource</a> * mime ) const<tt> [virtual]</tt> </h3> -Returns TRUE if the item can accept drops of type <a href="tqmimesource.html">TQMimeSource</a> <em>mime</em>; otherwise returns FALSE. -<p> The default implementation does nothing and returns FALSE. A +Returns true if the item can accept drops of type <a href="tqmimesource.html">TQMimeSource</a> <em>mime</em>; otherwise returns false. +<p> The default implementation does nothing and returns false. A subclass must reimplement this to accept drops. <h3 class=fn>void <a name="activate"></a>TQListViewItem::activate ()<tt> [virtual protected]</tt> @@ -285,8 +285,8 @@ on this item or presses Space on it. When called from a reimplementation of <a href="#activate">activate</a>(), this function gives information on how the item was activated. Otherwise the behavior is undefined. -<p> If activate() was caused by a mouse press, the function sets <em>pos</em> to where the user clicked and returns TRUE; otherwise it -returns FALSE and does not change <em>pos</em>. +<p> If activate() was caused by a mouse press, the function sets <em>pos</em> to where the user clicked and returns true; otherwise it +returns false and does not change <em>pos</em>. <p> <em>pos</em> is relative to the top-left corner of this item. <p> <b>Warning:</b> We recommend that you ignore this function; it is scheduled to become obsolete. @@ -332,7 +332,7 @@ Returns the depth of this item. <p>Example: <a href="dirview-example.html#x1686">dirview/dirview.cpp</a>. <h3 class=fn>bool <a name="dragEnabled"></a>TQListViewItem::dragEnabled () const </h3> -Returns TRUE if this item can be dragged; otherwise returns FALSE. +Returns true if this item can be dragged; otherwise returns false. <p> <p>See also <a href="#setDragEnabled">setDragEnabled</a>(). <h3 class=fn>void <a name="dragEntered"></a>TQListViewItem::dragEntered ()<tt> [virtual protected]</tt> @@ -351,7 +351,7 @@ reimplement this function. <h3 class=fn>bool <a name="dropEnabled"></a>TQListViewItem::dropEnabled () const </h3> -Returns TRUE if this item accepts drops; otherwise returns FALSE. +Returns true if this item accepts drops; otherwise returns false. <p> <p>See also <a href="#setDropEnabled">setDropEnabled</a>() and <a href="#acceptDrop">acceptDrop</a>(). <h3 class=fn>void <a name="dropped"></a>TQListViewItem::dropped ( <a href="tqdropevent.html">TQDropEvent</a> * e )<tt> [virtual protected]</tt> @@ -400,39 +400,39 @@ open children. <h3 class=fn>bool <a name="isEnabled"></a>TQListViewItem::isEnabled () const </h3> -Returns TRUE if this item is enabled; otherwise returns FALSE. +Returns true if this item is enabled; otherwise returns false. <p> <p>See also <a href="#setEnabled">setEnabled</a>(). <h3 class=fn>bool <a name="isExpandable"></a>TQListViewItem::isExpandable () const </h3> -<p> Returns TRUE if this item is expandable even when it has no -children; otherwise returns FALSE. +<p> Returns true if this item is expandable even when it has no +children; otherwise returns false. <h3 class=fn>bool <a name="isOpen"></a>TQListViewItem::isOpen () const </h3> -<p> Returns TRUE if this list view item has children <em>and</em> they are -not explicitly hidden; otherwise returns FALSE. +<p> Returns true if this list view item has children <em>and</em> they are +not explicitly hidden; otherwise returns false. <p> <p>See also <a href="#setOpen">setOpen</a>(). <h3 class=fn>bool <a name="isSelectable"></a>TQListViewItem::isSelectable () const </h3> -<p> Returns TRUE if the item is selectable (as it is by default); -otherwise returns FALSE +<p> Returns true if the item is selectable (as it is by default); +otherwise returns false <p> <p>See also <a href="#setSelectable">setSelectable</a>(). <h3 class=fn>bool <a name="isSelected"></a>TQListViewItem::isSelected () const </h3> -<p> Returns TRUE if this item is selected; otherwise returns FALSE. +<p> Returns true if this item is selected; otherwise returns false. <p> <p>See also <a href="#setSelected">setSelected</a>(), <a href="tqlistview.html#setSelected">TQListView::setSelected</a>(), and <a href="tqlistview.html#selectionChanged">TQListView::selectionChanged</a>(). <p>Example: <a href="listviews-example.html#x156">listviews/listviews.cpp</a>. <h3 class=fn>bool <a name="isVisible"></a>TQListViewItem::isVisible () const </h3> -Returns TRUE if the item is visible; otherwise returns FALSE. +Returns true if the item is visible; otherwise returns false. <p> <p>See also <a href="#setVisible">setVisible</a>(). <h3 class=fn><a href="tqlistviewitem.html">TQListViewItem</a> * <a name="itemAbove"></a>TQListViewItem::itemAbove () @@ -497,8 +497,8 @@ in the list view. <h3 class=fn>bool <a name="multiLinesEnabled"></a>TQListViewItem::multiLinesEnabled () const </h3> -Returns TRUE if the item can display multiple lines of text in its -columns; otherwise returns FALSE. +Returns true if the item can display multiple lines of text in its +columns; otherwise returns false. <h3 class=fn><a href="tqlistviewitem.html">TQListViewItem</a> * <a name="nextSibling"></a>TQListViewItem::nextSibling () const </h3> @@ -582,7 +582,7 @@ Returns the pixmap for <em>column</em>, or 0 if there is no pixmap for <h3 class=fn>bool <a name="renameEnabled"></a>TQListViewItem::renameEnabled ( int col ) const </h3> -Returns TRUE if this item can be in-place renamed in column <em>col</em>; otherwise returns FALSE. +Returns true if this item can be in-place renamed in column <em>col</em>; otherwise returns false. <h3 class=fn>void <a name="repaint"></a>TQListViewItem::repaint () const </h3> @@ -600,32 +600,32 @@ extensions to this class. <p>Reimplemented in <a href="tqchecklistitem.html#rtti">TQCheckListItem</a>. <h3 class=fn>void <a name="setDragEnabled"></a>TQListViewItem::setDragEnabled ( bool allow )<tt> [virtual]</tt> </h3> -If <em>allow</em> is TRUE, the list view starts a drag (see +If <em>allow</em> is true, the list view starts a drag (see <a href="tqlistview.html#dragObject">TQListView::dragObject</a>()) when the user presses and moves the mouse on this item. <h3 class=fn>void <a name="setDropEnabled"></a>TQListViewItem::setDropEnabled ( bool allow )<tt> [virtual]</tt> </h3> -If <em>allow</em> is TRUE, the list view accepts drops onto the item; +If <em>allow</em> is true, the list view accepts drops onto the item; otherwise drops are not allowed. <h3 class=fn>void <a name="setEnabled"></a>TQListViewItem::setEnabled ( bool b )<tt> [virtual]</tt> </h3> -If <em>b</em> is TRUE the item is enabled; otherwise it is disabled. +If <em>b</em> is true the item is enabled; otherwise it is disabled. Disabled items are drawn differently (e.g. grayed-out) and are not accessible by the user. <h3 class=fn>void <a name="setExpandable"></a>TQListViewItem::setExpandable ( bool enable )<tt> [virtual]</tt> </h3> -Sets this item to be expandable even if it has no children if <em>enable</em> is TRUE, and to be expandable only if it has children if <em>enable</em> is FALSE (the default). +Sets this item to be expandable even if it has no children if <em>enable</em> is true, and to be expandable only if it has children if <em>enable</em> is false (the default). <p> The dirview example uses this in the canonical fashion. It checks whether the directory is empty in <a href="#setup">setup</a>() and calls -<a href="#setExpandable">setExpandable</a>(TRUE) if not; in <a href="#setOpen">setOpen</a>() it reads the contents of +<a href="#setExpandable">setExpandable</a>(true) if not; in <a href="#setOpen">setOpen</a>() it reads the contents of the directory and inserts items accordingly. This strategy means that dirview can display the entire file system without reading very much at startup. <p> Note that root items are not expandable by the user unless -<a href="tqlistview.html#setRootIsDecorated">TQListView::setRootIsDecorated</a>() is set to TRUE. +<a href="tqlistview.html#setRootIsDecorated">TQListView::setRootIsDecorated</a>() is set to true. <p> <p>See also <a href="#setSelectable">setSelectable</a>(). <h3 class=fn>void <a name="setHeight"></a>TQListViewItem::setHeight ( int height )<tt> [virtual protected]</tt> @@ -640,16 +640,16 @@ of pixels. <h3 class=fn>void <a name="setMultiLinesEnabled"></a>TQListViewItem::setMultiLinesEnabled ( bool b )<tt> [virtual]</tt> </h3> -If <em>b</em> is TRUE each of the item's columns may contain multiple +If <em>b</em> is true each of the item's columns may contain multiple lines of text; otherwise each of them may only contain a single line. <h3 class=fn>void <a name="setOpen"></a>TQListViewItem::setOpen ( bool o )<tt> [virtual]</tt> </h3> Opens or closes an item, i.e. shows or hides an item's children. -<p> If <em>o</em> is TRUE all child items are shown initially. The user can +<p> If <em>o</em> is true all child items are shown initially. The user can hide them by clicking the <b>-</b> icon to the left of the item. -If <em>o</em> is FALSE, the children of this item are initially hidden. +If <em>o</em> is false, the children of this item are initially hidden. The user can show them by clicking the <b>+</b> icon to the left of the item. <p> <p>See also <a href="#height">height</a>(), <a href="#totalHeight">totalHeight</a>(), and <a href="#isOpen">isOpen</a>(). @@ -665,13 +665,13 @@ non-negative. <p>Example: <a href="dirview-example.html#x1691">dirview/dirview.cpp</a>. <h3 class=fn>void <a name="setRenameEnabled"></a>TQListViewItem::setRenameEnabled ( int col, bool b )<tt> [virtual]</tt> </h3> -If <em>b</em> is TRUE, this item can be in-place renamed in the column +If <em>b</em> is true, this item can be in-place renamed in the column <em>col</em> by the user; otherwise it cannot be renamed in-place. <h3 class=fn>void <a name="setSelectable"></a>TQListViewItem::setSelectable ( bool enable )<tt> [virtual]</tt> </h3> -Sets this item to be selectable if <em>enable</em> is TRUE (the -default) or not to be selectable if <em>enable</em> is FALSE. +Sets this item to be selectable if <em>enable</em> is true (the +default) or not to be selectable if <em>enable</em> is false. <p> The user is not able to select a non-selectable item using either the keyboard or the mouse. This also applies for the application programmer (e.g. <a href="#setSelected">setSelected</a>() respects this value). @@ -679,7 +679,7 @@ programmer (e.g. <a href="#setSelected">setSelected</a>() respects this value). <h3 class=fn>void <a name="setSelected"></a>TQListViewItem::setSelected ( bool s )<tt> [virtual]</tt> </h3> -If <em>s</em> is TRUE this item is selected; otherwise it is deselected. +If <em>s</em> is true this item is selected; otherwise it is deselected. <p> This function does not maintain any invariants or repaint anything -- <a href="tqlistview.html#setSelected">TQListView::setSelected</a>() does that. <p> <p>See also <a href="#height">height</a>() and <a href="#totalHeight">totalHeight</a>(). @@ -696,7 +696,7 @@ text. <p>Examples: <a href="addressbook-example.html#x595">addressbook/centralwidget.cpp</a> and <a href="outliner-example.html#x1916">xml/outliner/outlinetree.cpp</a>. <h3 class=fn>void <a name="setVisible"></a>TQListViewItem::setVisible ( bool b ) </h3> -If <em>b</em> is TRUE, the item is made visible; otherwise it is hidden. +If <em>b</em> is true, the item is made visible; otherwise it is hidden. <p> If the item is not visible, <a href="#itemAbove">itemAbove</a>() and <a href="#itemBelow">itemBelow</a>() will never return this item, although you still can reach it by using e.g. <a href="tqlistviewitemiterator.html">TQListViewItemIterator</a>. @@ -722,8 +722,8 @@ configuration (sort column and direction). <h3 class=fn>void <a name="sortChildItems"></a>TQListViewItem::sortChildItems ( int column, bool ascending )<tt> [virtual]</tt> </h3> Sorts this item's children using column <em>column</em>. This is done in -ascending order if <em>ascending</em> is TRUE and in descending order if -<em>ascending</em> is FALSE. +ascending order if <em>ascending</em> is true and in descending order if +<em>ascending</em> is false. <p> Asks some of the children to sort their children. (<a href="tqlistview.html">TQListView</a> and TQListViewItem ensure that all on-screen objects are properly sorted but may avoid or defer sorting other objects in order to be |