From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqlistviewitem.html | 72 ++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'doc/html/tqlistviewitem.html') 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. Called whenever the user clicks on the item or presses Space when the item is the current item. -

Some subclasses call setExpandable(TRUE) even when they have no -children, and populate themselves when setup() or setOpen(TRUE) is +

Some subclasses call setExpandable(true) even when they have no +children, and populate themselves when setup() or setOpen(true) is called. The dirview/dirview.cpp 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.

bool TQListViewItem::acceptDrop ( const TQMimeSource * mime ) const [virtual]

-Returns TRUE if the item can accept drops of type TQMimeSource mime; otherwise returns FALSE. -

The default implementation does nothing and returns FALSE. A +Returns true if the item can accept drops of type TQMimeSource mime; otherwise returns false. +

The default implementation does nothing and returns false. A subclass must reimplement this to accept drops.

void TQListViewItem::activate () [virtual protected] @@ -285,8 +285,8 @@ on this item or presses Space on it. When called from a reimplementation of activate(), this function gives information on how the item was activated. Otherwise the behavior is undefined. -

If activate() was caused by a mouse press, the function sets pos to where the user clicked and returns TRUE; otherwise it -returns FALSE and does not change pos. +

If activate() was caused by a mouse press, the function sets pos to where the user clicked and returns true; otherwise it +returns false and does not change pos.

pos is relative to the top-left corner of this item.

Warning: We recommend that you ignore this function; it is scheduled to become obsolete. @@ -332,7 +332,7 @@ Returns the depth of this item.

Example: dirview/dirview.cpp.

bool TQListViewItem::dragEnabled () const

-Returns TRUE if this item can be dragged; otherwise returns FALSE. +Returns true if this item can be dragged; otherwise returns false.

See also setDragEnabled().

void TQListViewItem::dragEntered () [virtual protected] @@ -351,7 +351,7 @@ reimplement this function.

bool TQListViewItem::dropEnabled () const

-Returns TRUE if this item accepts drops; otherwise returns FALSE. +Returns true if this item accepts drops; otherwise returns false.

See also setDropEnabled() and acceptDrop().

void TQListViewItem::dropped ( TQDropEvent * e ) [virtual protected] @@ -400,39 +400,39 @@ open children.

bool TQListViewItem::isEnabled () const

-Returns TRUE if this item is enabled; otherwise returns FALSE. +Returns true if this item is enabled; otherwise returns false.

See also setEnabled().

bool TQListViewItem::isExpandable () const

-

Returns TRUE if this item is expandable even when it has no -children; otherwise returns FALSE. +

Returns true if this item is expandable even when it has no +children; otherwise returns false.

bool TQListViewItem::isOpen () const

-

Returns TRUE if this list view item has children and they are -not explicitly hidden; otherwise returns FALSE. +

Returns true if this list view item has children and they are +not explicitly hidden; otherwise returns false.

See also setOpen().

bool TQListViewItem::isSelectable () const

-

Returns TRUE if the item is selectable (as it is by default); -otherwise returns FALSE +

Returns true if the item is selectable (as it is by default); +otherwise returns false

See also setSelectable().

bool TQListViewItem::isSelected () const

-

Returns TRUE if this item is selected; otherwise returns FALSE. +

Returns true if this item is selected; otherwise returns false.

See also setSelected(), TQListView::setSelected(), and TQListView::selectionChanged().

Example: listviews/listviews.cpp.

bool TQListViewItem::isVisible () const

-Returns TRUE if the item is visible; otherwise returns FALSE. +Returns true if the item is visible; otherwise returns false.

See also setVisible().

TQListViewItem * TQListViewItem::itemAbove () @@ -497,8 +497,8 @@ in the list view.

bool TQListViewItem::multiLinesEnabled () const

-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.

TQListViewItem * TQListViewItem::nextSibling () const

@@ -582,7 +582,7 @@ Returns the pixmap for column, or 0 if there is no pixmap for

bool TQListViewItem::renameEnabled ( int col ) const

-Returns TRUE if this item can be in-place renamed in column col; otherwise returns FALSE. +Returns true if this item can be in-place renamed in column col; otherwise returns false.

void TQListViewItem::repaint () const

@@ -600,32 +600,32 @@ extensions to this class.

Reimplemented in TQCheckListItem.

void TQListViewItem::setDragEnabled ( bool allow ) [virtual]

-If allow is TRUE, the list view starts a drag (see +If allow is true, the list view starts a drag (see TQListView::dragObject()) when the user presses and moves the mouse on this item.

void TQListViewItem::setDropEnabled ( bool allow ) [virtual]

-If allow is TRUE, the list view accepts drops onto the item; +If allow is true, the list view accepts drops onto the item; otherwise drops are not allowed.

void TQListViewItem::setEnabled ( bool b ) [virtual]

-If b is TRUE the item is enabled; otherwise it is disabled. +If b 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.

void TQListViewItem::setExpandable ( bool enable ) [virtual]

-Sets this item to be expandable even if it has no children if enable is TRUE, and to be expandable only if it has children if enable is FALSE (the default). +Sets this item to be expandable even if it has no children if enable is true, and to be expandable only if it has children if enable is false (the default).

The dirview example uses this in the canonical fashion. It checks whether the directory is empty in setup() and calls -setExpandable(TRUE) if not; in setOpen() it reads the contents of +setExpandable(true) if not; in setOpen() 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.

Note that root items are not expandable by the user unless -TQListView::setRootIsDecorated() is set to TRUE. +TQListView::setRootIsDecorated() is set to true.

See also setSelectable().

void TQListViewItem::setHeight ( int height ) [virtual protected] @@ -640,16 +640,16 @@ of pixels.

void TQListViewItem::setMultiLinesEnabled ( bool b ) [virtual]

-If b is TRUE each of the item's columns may contain multiple +If b is true each of the item's columns may contain multiple lines of text; otherwise each of them may only contain a single line.

void TQListViewItem::setOpen ( bool o ) [virtual]

Opens or closes an item, i.e. shows or hides an item's children. -

If o is TRUE all child items are shown initially. The user can +

If o is true all child items are shown initially. The user can hide them by clicking the - icon to the left of the item. -If o is FALSE, the children of this item are initially hidden. +If o is false, the children of this item are initially hidden. The user can show them by clicking the + icon to the left of the item.

See also height(), totalHeight(), and isOpen(). @@ -665,13 +665,13 @@ non-negative.

Example: dirview/dirview.cpp.

void TQListViewItem::setRenameEnabled ( int col, bool b ) [virtual]

-If b is TRUE, this item can be in-place renamed in the column +If b is true, this item can be in-place renamed in the column col by the user; otherwise it cannot be renamed in-place.

void TQListViewItem::setSelectable ( bool enable ) [virtual]

-Sets this item to be selectable if enable is TRUE (the -default) or not to be selectable if enable is FALSE. +Sets this item to be selectable if enable is true (the +default) or not to be selectable if enable is false.

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. setSelected() respects this value). @@ -679,7 +679,7 @@ programmer (e.g. setSelected() respects this value).

void TQListViewItem::setSelected ( bool s ) [virtual]

-If s is TRUE this item is selected; otherwise it is deselected. +If s is true this item is selected; otherwise it is deselected.

This function does not maintain any invariants or repaint anything -- TQListView::setSelected() does that.

See also height() and totalHeight(). @@ -696,7 +696,7 @@ text.

Examples: addressbook/centralwidget.cpp and xml/outliner/outlinetree.cpp.

void TQListViewItem::setVisible ( bool b )

-If b is TRUE, the item is made visible; otherwise it is hidden. +If b is true, the item is made visible; otherwise it is hidden.

If the item is not visible, itemAbove() and itemBelow() will never return this item, although you still can reach it by using e.g. TQListViewItemIterator. @@ -722,8 +722,8 @@ configuration (sort column and direction).

void TQListViewItem::sortChildItems ( int column, bool ascending ) [virtual]

Sorts this item's children using column column. This is done in -ascending order if ascending is TRUE and in descending order if -ascending is FALSE. +ascending order if ascending is true and in descending order if +ascending is false.

Asks some of the children to sort their children. (TQListView and TQListViewItem ensure that all on-screen objects are properly sorted but may avoid or defer sorting other objects in order to be -- cgit v1.2.3