diff options
Diffstat (limited to 'doc/html/qlistviewitem.html')
-rw-r--r-- | doc/html/qlistviewitem.html | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/doc/html/qlistviewitem.html b/doc/html/qlistviewitem.html index ca3eec1a1..0731f840a 100644 --- a/doc/html/qlistviewitem.html +++ b/doc/html/qlistviewitem.html @@ -33,8 +33,8 @@ body { background: #ffffff; color: black; } <p>The TQListViewItem class implements a list view item. <a href="#details">More...</a> -<p><tt>#include <<a href="qlistview-h.html">qlistview.h</a>></tt> -<p>Inherits <a href="qt.html">TQt</a>. +<p><tt>#include <<a href="qlistview-h.html">ntqlistview.h</a>></tt> +<p>Inherits <a href="ntqt.html">TQt</a>. <p>Inherited by <a href="qchecklistitem.html">TQCheckListItem</a>. <p><a href="qlistviewitem-members.html">List of all member functions.</a> <h2>Public Members</h2> @@ -121,7 +121,7 @@ body { background: #ffffff; color: black; } The TQListViewItem class implements a list view item. <p> <p> A list view item is a multi-column object capable of displaying -itself in a <a href="qlistview.html">TQListView</a>. +itself in a <a href="ntqlistview.html">TQListView</a>. <p> The easiest way to use TQListViewItem is to construct one with a few constant strings, and either a TQListView or another TQListViewItem as parent. @@ -132,7 +132,7 @@ TQListViewItem as parent. We've discarded the pointers to the items since we can still access them via their parent <em>listView</em>. By default, TQListView sorts its -items; this can be switched off with <a href="qlistview.html#setSorting">TQListView::setSorting</a>(-1). +items; this can be switched off with <a href="ntqlistview.html#setSorting">TQListView::setSorting</a>(-1). <p> The parent must be another TQListViewItem or a TQListView. If the parent is a TQListView, the item becomes a top-level item within that TQListView. If the parent is another TQListViewItem, the item @@ -142,12 +142,12 @@ becomes a child of that list view item. <a href="#setSelectable">setSelectable</a>(), <a href="#setSelected">setSelected</a>(), <a href="#setOpen">setOpen</a>() and <a href="#setExpandable">setExpandable</a>(). You'll also be able to change its height using <a href="#setHeight">setHeight</a>(), and traverse its sub-items. You don't have to keep the pointer since -you can get a pointer to any TQListViewItem in a <a href="qlistview.html">TQListView</a> using -<a href="qlistview.html#selectedItem">TQListView::selectedItem</a>(), <a href="qlistview.html#currentItem">TQListView::currentItem</a>(), -<a href="qlistview.html#firstChild">TQListView::firstChild</a>(), <a href="qlistview.html#lastItem">TQListView::lastItem</a>() and -<a href="qlistview.html#findItem">TQListView::findItem</a>(). +you can get a pointer to any TQListViewItem in a <a href="ntqlistview.html">TQListView</a> using +<a href="ntqlistview.html#selectedItem">TQListView::selectedItem</a>(), <a href="ntqlistview.html#currentItem">TQListView::currentItem</a>(), +<a href="ntqlistview.html#firstChild">TQListView::firstChild</a>(), <a href="ntqlistview.html#lastItem">TQListView::lastItem</a>() and +<a href="ntqlistview.html#findItem">TQListView::findItem</a>(). <p> If you call <tt>delete</tt> on a list view item, it will be deleted as -expected, and as usual for <a href="qobject.html">TQObject</a>s, if it has any child items +expected, and as usual for <a href="ntqobject.html">TQObject</a>s, if it has any child items (to any depth), all these will be deleted too. <p> <a href="qchecklistitem.html">TQCheckListItem</a>s are list view items that have a checkbox or radio button and can be used in place of plain TQListViewItems. @@ -181,7 +181,7 @@ particular item, initialize the iterator with the item: <p> Note that the order of the children will change when the sorting order changes and is undefined if the items are not visible. You -can, however, call <a href="#enforceSortOrder">enforceSortOrder</a>() at any time; <a href="qlistview.html">TQListView</a> will +can, however, call <a href="#enforceSortOrder">enforceSortOrder</a>() at any time; <a href="ntqlistview.html">TQListView</a> will always call it before it needs to show an item. <p> Many programs will need to reimplement TQListViewItem. The most commonly reimplemented functions are: @@ -193,7 +193,7 @@ this on the fly. <tr bgcolor="#d0d0d0"> <td valign="top"><a href="#key">key</a>() <td valign="top">Used for sorting. The default <a href="#key">key</a>() simply calls <a href="#text">text</a>(), but judicious use of key() can give you fine -control over sorting; for example, <a href="qfiledialog.html">TQFileDialog</a> +control over sorting; for example, <a href="ntqfiledialog.html">TQFileDialog</a> reimplements key() to sort by date. <tr bgcolor="#f0f0f0"> <td valign="top"><a href="#setup">setup</a>() <td valign="top">Called before showing the item and whenever the list @@ -209,58 +209,58 @@ technique to start up tquickly: The files and subdirectories in a directory aren't inserted into the tree until they're actually needed. <p> <center><img src="qlistviewitems.png" alt="List View Items"></center> -<p> <p>See also <a href="qchecklistitem.html">TQCheckListItem</a>, <a href="qlistview.html">TQListView</a>, and <a href="advanced.html">Advanced Widgets</a>. +<p> <p>See also <a href="qchecklistitem.html">TQCheckListItem</a>, <a href="ntqlistview.html">TQListView</a>, and <a href="advanced.html">Advanced Widgets</a>. <hr><h2>Member Function Documentation</h2> -<h3 class=fn><a name="TQListViewItem"></a>TQListViewItem::TQListViewItem ( <a href="qlistview.html">TQListView</a> * parent ) +<h3 class=fn><a name="TQListViewItem"></a>TQListViewItem::TQListViewItem ( <a href="ntqlistview.html">TQListView</a> * parent ) </h3> -Constructs a new top-level list view item in the <a href="qlistview.html">TQListView</a> <em>parent</em>. +Constructs a new top-level list view item in the <a href="ntqlistview.html">TQListView</a> <em>parent</em>. <h3 class=fn><a name="TQListViewItem-2"></a>TQListViewItem::TQListViewItem ( <a href="qlistviewitem.html">TQListViewItem</a> * parent ) </h3> Constructs a new list view item that is a child of <em>parent</em> and first in the parent's list of children. -<h3 class=fn><a name="TQListViewItem-3"></a>TQListViewItem::TQListViewItem ( <a href="qlistview.html">TQListView</a> * parent, <a href="qlistviewitem.html">TQListViewItem</a> * after ) +<h3 class=fn><a name="TQListViewItem-3"></a>TQListViewItem::TQListViewItem ( <a href="ntqlistview.html">TQListView</a> * parent, <a href="qlistviewitem.html">TQListViewItem</a> * after ) </h3> Constructs an empty list view item that is a child of <em>parent</em> and is after item <em>after</em> in the parent's list of children. Since -<em>parent</em> is a <a href="qlistview.html">TQListView</a> the item will be a top-level item. +<em>parent</em> is a <a href="ntqlistview.html">TQListView</a> the item will be a top-level item. <h3 class=fn><a name="TQListViewItem-4"></a>TQListViewItem::TQListViewItem ( <a href="qlistviewitem.html">TQListViewItem</a> * parent, <a href="qlistviewitem.html">TQListViewItem</a> * after ) </h3> Constructs an empty list view item that is a child of <em>parent</em> and is after item <em>after</em> in the parent's list of children. -<h3 class=fn><a name="TQListViewItem-5"></a>TQListViewItem::TQListViewItem ( <a href="qlistview.html">TQListView</a> * parent, <a href="qstring.html">TQString</a> label1, <a href="qstring.html">TQString</a> label2 = TQString::null, <a href="qstring.html">TQString</a> label3 = TQString::null, <a href="qstring.html">TQString</a> label4 = TQString::null, <a href="qstring.html">TQString</a> label5 = TQString::null, <a href="qstring.html">TQString</a> label6 = TQString::null, <a href="qstring.html">TQString</a> label7 = TQString::null, <a href="qstring.html">TQString</a> label8 = TQString::null ) +<h3 class=fn><a name="TQListViewItem-5"></a>TQListViewItem::TQListViewItem ( <a href="ntqlistview.html">TQListView</a> * parent, <a href="ntqstring.html">TQString</a> label1, <a href="ntqstring.html">TQString</a> label2 = TQString::null, <a href="ntqstring.html">TQString</a> label3 = TQString::null, <a href="ntqstring.html">TQString</a> label4 = TQString::null, <a href="ntqstring.html">TQString</a> label5 = TQString::null, <a href="ntqstring.html">TQString</a> label6 = TQString::null, <a href="ntqstring.html">TQString</a> label7 = TQString::null, <a href="ntqstring.html">TQString</a> label8 = TQString::null ) </h3> -Constructs a new top-level list view item in the <a href="qlistview.html">TQListView</a> <em>parent</em>, with up to eight constant strings, <em>label1</em>, <em>label2</em>, <em>label3</em>, <em>label4</em>, <em>label5</em>, <em>label6</em>, <em>label7</em> and <em>label8</em> +Constructs a new top-level list view item in the <a href="ntqlistview.html">TQListView</a> <em>parent</em>, with up to eight constant strings, <em>label1</em>, <em>label2</em>, <em>label3</em>, <em>label4</em>, <em>label5</em>, <em>label6</em>, <em>label7</em> and <em>label8</em> defining its columns' contents. <p> <p>See also <a href="#setText">setText</a>(). -<h3 class=fn><a name="TQListViewItem-6"></a>TQListViewItem::TQListViewItem ( <a href="qlistviewitem.html">TQListViewItem</a> * parent, <a href="qstring.html">TQString</a> label1, <a href="qstring.html">TQString</a> label2 = TQString::null, <a href="qstring.html">TQString</a> label3 = TQString::null, <a href="qstring.html">TQString</a> label4 = TQString::null, <a href="qstring.html">TQString</a> label5 = TQString::null, <a href="qstring.html">TQString</a> label6 = TQString::null, <a href="qstring.html">TQString</a> label7 = TQString::null, <a href="qstring.html">TQString</a> label8 = TQString::null ) +<h3 class=fn><a name="TQListViewItem-6"></a>TQListViewItem::TQListViewItem ( <a href="qlistviewitem.html">TQListViewItem</a> * parent, <a href="ntqstring.html">TQString</a> label1, <a href="ntqstring.html">TQString</a> label2 = TQString::null, <a href="ntqstring.html">TQString</a> label3 = TQString::null, <a href="ntqstring.html">TQString</a> label4 = TQString::null, <a href="ntqstring.html">TQString</a> label5 = TQString::null, <a href="ntqstring.html">TQString</a> label6 = TQString::null, <a href="ntqstring.html">TQString</a> label7 = TQString::null, <a href="ntqstring.html">TQString</a> label8 = TQString::null ) </h3> Constructs a new list view item as a child of the TQListViewItem <em>parent</em> with up to eight constant strings, <em>label1</em>, <em>label2</em>, <em>label3</em>, <em>label4</em>, <em>label5</em>, <em>label6</em>, <em>label7</em> and <em>label8</em> as columns' contents. <p> <p>See also <a href="#setText">setText</a>(). -<h3 class=fn><a name="TQListViewItem-7"></a>TQListViewItem::TQListViewItem ( <a href="qlistview.html">TQListView</a> * parent, <a href="qlistviewitem.html">TQListViewItem</a> * after, <a href="qstring.html">TQString</a> label1, <a href="qstring.html">TQString</a> label2 = TQString::null, <a href="qstring.html">TQString</a> label3 = TQString::null, <a href="qstring.html">TQString</a> label4 = TQString::null, <a href="qstring.html">TQString</a> label5 = TQString::null, <a href="qstring.html">TQString</a> label6 = TQString::null, <a href="qstring.html">TQString</a> label7 = TQString::null, <a href="qstring.html">TQString</a> label8 = TQString::null ) +<h3 class=fn><a name="TQListViewItem-7"></a>TQListViewItem::TQListViewItem ( <a href="ntqlistview.html">TQListView</a> * parent, <a href="qlistviewitem.html">TQListViewItem</a> * after, <a href="ntqstring.html">TQString</a> label1, <a href="ntqstring.html">TQString</a> label2 = TQString::null, <a href="ntqstring.html">TQString</a> label3 = TQString::null, <a href="ntqstring.html">TQString</a> label4 = TQString::null, <a href="ntqstring.html">TQString</a> label5 = TQString::null, <a href="ntqstring.html">TQString</a> label6 = TQString::null, <a href="ntqstring.html">TQString</a> label7 = TQString::null, <a href="ntqstring.html">TQString</a> label8 = TQString::null ) </h3> -Constructs a new list view item in the <a href="qlistview.html">TQListView</a> <em>parent</em> that is +Constructs a new list view item in the <a href="ntqlistview.html">TQListView</a> <em>parent</em> that is included after item <em>after</em> and that has up to eight column texts, <em>label1</em>, <em>label2</em>, <em>label3</em>, <em>label4</em>, <em>label5</em>, <em>label6</em>, <em>label7</em> and<em>label8</em>. <p> Note that the order is changed according to <a href="#key">TQListViewItem::key</a>() unless the list view's sorting is disabled using -<a href="qlistview.html#setSorting">TQListView::setSorting</a>(-1). +<a href="ntqlistview.html#setSorting">TQListView::setSorting</a>(-1). <p> <p>See also <a href="#setText">setText</a>(). -<h3 class=fn><a name="TQListViewItem-8"></a>TQListViewItem::TQListViewItem ( <a href="qlistviewitem.html">TQListViewItem</a> * parent, <a href="qlistviewitem.html">TQListViewItem</a> * after, <a href="qstring.html">TQString</a> label1, <a href="qstring.html">TQString</a> label2 = TQString::null, <a href="qstring.html">TQString</a> label3 = TQString::null, <a href="qstring.html">TQString</a> label4 = TQString::null, <a href="qstring.html">TQString</a> label5 = TQString::null, <a href="qstring.html">TQString</a> label6 = TQString::null, <a href="qstring.html">TQString</a> label7 = TQString::null, <a href="qstring.html">TQString</a> label8 = TQString::null ) +<h3 class=fn><a name="TQListViewItem-8"></a>TQListViewItem::TQListViewItem ( <a href="qlistviewitem.html">TQListViewItem</a> * parent, <a href="qlistviewitem.html">TQListViewItem</a> * after, <a href="ntqstring.html">TQString</a> label1, <a href="ntqstring.html">TQString</a> label2 = TQString::null, <a href="ntqstring.html">TQString</a> label3 = TQString::null, <a href="ntqstring.html">TQString</a> label4 = TQString::null, <a href="ntqstring.html">TQString</a> label5 = TQString::null, <a href="ntqstring.html">TQString</a> label6 = TQString::null, <a href="ntqstring.html">TQString</a> label7 = TQString::null, <a href="ntqstring.html">TQString</a> label8 = TQString::null ) </h3> Constructs a new list view item as a child of the TQListViewItem <em>parent</em>. It is inserted after item <em>after</em> and may contain up to eight strings, <em>label1</em>, <em>label2</em>, <em>label3</em>, <em>label4</em>, <em>label5</em>, <em>label6</em>, <em>label7</em> and <em>label8</em> as column entries. <p> Note that the order is changed according to <a href="#key">TQListViewItem::key</a>() unless the list view's sorting is disabled using -<a href="qlistview.html#setSorting">TQListView::setSorting</a>(-1). +<a href="ntqlistview.html#setSorting">TQListView::setSorting</a>(-1). <p> <p>See also <a href="#setText">setText</a>(). <h3 class=fn><a name="~TQListViewItem"></a>TQListViewItem::~TQListViewItem ()<tt> [virtual]</tt> @@ -281,7 +281,7 @@ on this item or presses Space on it. <p> <p>See also <a href="#activatedPos">activatedPos</a>(). <p>Reimplemented in <a href="qchecklistitem.html#activate">TQCheckListItem</a>. -<h3 class=fn>bool <a name="activatedPos"></a>TQListViewItem::activatedPos ( <a href="qpoint.html">TQPoint</a> & pos )<tt> [protected]</tt> +<h3 class=fn>bool <a name="activatedPos"></a>TQListViewItem::activatedPos ( <a href="ntqpoint.html">TQPoint</a> & pos )<tt> [protected]</tt> </h3> When called from a reimplementation of <a href="#activate">activate</a>(), this function gives information on how the item was activated. Otherwise the @@ -311,7 +311,7 @@ Compares this list view item to <em>i</em> using the column <em>col</em> in <em> they are equal and > 0 if this item is greater than <em>i</em>. <p> This function is used for sorting. <p> The default implementation compares the item keys (<a href="#key">key</a>()) using -<a href="qstring.html#localeAwareCompare">TQString::localeAwareCompare</a>(). A reimplementation can use +<a href="ntqstring.html#localeAwareCompare">TQString::localeAwareCompare</a>(). A reimplementation can use different values and a different comparison function. Here is a reimplementation that uses plain Unicode comparison: <p> <pre> @@ -324,7 +324,7 @@ reimplementation that uses plain Unicode comparison: We don't recommend using <em>ascending</em> so your code can safely ignore it. -<p> <p>See also <a href="#key">key</a>(), <a href="qstring.html#localeAwareCompare">TQString::localeAwareCompare</a>(), and <a href="qstring.html#compare">TQString::compare</a>(). +<p> <p>See also <a href="#key">key</a>(), <a href="ntqstring.html#localeAwareCompare">TQString::localeAwareCompare</a>(), and <a href="ntqstring.html#compare">TQString::compare</a>(). <h3 class=fn>int <a name="depth"></a>TQListViewItem::depth () const </h3> @@ -374,7 +374,7 @@ is already sorted. Returns the first (top) child of this item, or 0 if this item has no children. <p> Note that the children are not guaranteed to be sorted properly. -<a href="qlistview.html">TQListView</a> and TQListViewItem try to postpone or avoid sorting to +<a href="ntqlistview.html">TQListView</a> and TQListViewItem try to postpone or avoid sorting to the greatest degree possible, in order to keep the user interface snappy. <p> <p>See also <a href="#nextSibling">nextSibling</a>() and <a href="#sortChildItems">sortChildItems</a>(). @@ -428,7 +428,7 @@ otherwise returns FALSE </h3> <p> Returns TRUE if this item is selected; otherwise returns FALSE. -<p> <p>See also <a href="#setSelected">setSelected</a>(), <a href="qlistview.html#setSelected">TQListView::setSelected</a>(), and <a href="qlistview.html#selectionChanged">TQListView::selectionChanged</a>(). +<p> <p>See also <a href="#setSelected">setSelected</a>(), <a href="ntqlistview.html#setSelected">TQListView::setSelected</a>(), and <a href="ntqlistview.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 @@ -447,7 +447,7 @@ if there is no item immediately above this item. that this item is visible, or can be made visible by scrolling). <p> This function might be relatively slow because of the tree traversions needed to find the correct item. -<p> <p>See also <a href="#itemBelow">itemBelow</a>() and <a href="qlistview.html#itemRect">TQListView::itemRect</a>(). +<p> <p>See also <a href="#itemBelow">itemBelow</a>() and <a href="ntqlistview.html#itemRect">TQListView::itemRect</a>(). <h3 class=fn><a href="qlistviewitem.html">TQListViewItem</a> * <a name="itemBelow"></a>TQListViewItem::itemBelow () </h3> @@ -459,18 +459,18 @@ returns 0. Returns 0 if there is no item immediately below this item. <p> This function assumes that all parents of this item are open (i.e. that this item is visible or can be made visible by scrolling). -<p> <p>See also <a href="#itemAbove">itemAbove</a>() and <a href="qlistview.html#itemRect">TQListView::itemRect</a>(). +<p> <p>See also <a href="#itemAbove">itemAbove</a>() and <a href="ntqlistview.html#itemRect">TQListView::itemRect</a>(). <p>Example: <a href="dirview-example.html#x1687">dirview/dirview.cpp</a>. <h3 class=fn>int <a name="itemPos"></a>TQListViewItem::itemPos () const </h3> Returns the y coordinate of this item in the list view's coordinate system. This function is normally much slower than -<a href="qlistview.html#itemAt">TQListView::itemAt</a>(), but it works for all items whereas +<a href="ntqlistview.html#itemAt">TQListView::itemAt</a>(), but it works for all items whereas TQListView::itemAt() normally only works for items on the screen. -<p> <p>See also <a href="qlistview.html#itemAt">TQListView::itemAt</a>(), <a href="qlistview.html#itemRect">TQListView::itemRect</a>(), and <a href="qlistview.html#itemPos">TQListView::itemPos</a>(). +<p> <p>See also <a href="ntqlistview.html#itemAt">TQListView::itemAt</a>(), <a href="ntqlistview.html#itemRect">TQListView::itemRect</a>(), and <a href="ntqlistview.html#itemPos">TQListView::itemPos</a>(). -<h3 class=fn><a href="qstring.html">TQString</a> <a name="key"></a>TQListViewItem::key ( int column, bool ascending ) const<tt> [virtual]</tt> +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="key"></a>TQListViewItem::key ( int column, bool ascending ) const<tt> [virtual]</tt> </h3> <p> Returns a key that can be used for sorting by column <em>column</em>. @@ -481,7 +481,7 @@ key, although this is not recommended. etc., it is more efficient to reimplement <a href="#compare">compare</a>(). <p> <p>See also <a href="#compare">compare</a>() and <a href="#sortChildItems">sortChildItems</a>(). -<h3 class=fn><a href="qlistview.html">TQListView</a> * <a name="listView"></a>TQListViewItem::listView () const +<h3 class=fn><a href="ntqlistview.html">TQListView</a> * <a name="listView"></a>TQListViewItem::listView () const </h3> Returns a pointer to the list view containing this item. <p> Note that this function traverses the items to the root to find the @@ -507,7 +507,7 @@ columns; otherwise returns FALSE. <p> Returns the sibling item below this item, or 0 if there is no sibling item after this item. <p> Note that the siblings are not guaranteed to be sorted properly. -<a href="qlistview.html">TQListView</a> and TQListViewItem try to postpone or avoid sorting to +<a href="ntqlistview.html">TQListView</a> and TQListViewItem try to postpone or avoid sorting to the greatest degree possible, in order to keep the user interface snappy. <p> <p>See also <a href="#firstChild">firstChild</a>() and <a href="#sortChildItems">sortChildItems</a>(). @@ -519,7 +519,7 @@ This function is called if the user presses Enter during in-place renaming of the item in column <em>col</em>. <p> <p>See also <a href="#cancelRename">cancelRename</a>(). -<h3 class=fn>void <a name="paintBranches"></a>TQListViewItem::paintBranches ( <a href="qpainter.html">TQPainter</a> * p, const <a href="qcolorgroup.html">TQColorGroup</a> & cg, int w, int y, int h )<tt> [virtual]</tt> +<h3 class=fn>void <a name="paintBranches"></a>TQListViewItem::paintBranches ( <a href="ntqpainter.html">TQPainter</a> * p, const <a href="qcolorgroup.html">TQColorGroup</a> & cg, int w, int y, int h )<tt> [virtual]</tt> </h3> Paints a set of branches from this item to (some of) its children. <p> Painter <em>p</em> is set up with clipping and translation so that you @@ -530,36 +530,36 @@ width <em>w</em> by height <em>h</em>. The top of the rectangle you own is at system's allowed coordinate range). <p> The update rectangle is in an undefined state when this function is called; this function must draw on <em>all</em> of the pixels. -<p> <p>See also <a href="#paintCell">paintCell</a>() and <a href="qlistview.html#drawContentsOffset">TQListView::drawContentsOffset</a>(). +<p> <p>See also <a href="#paintCell">paintCell</a>() and <a href="ntqlistview.html#drawContentsOffset">TQListView::drawContentsOffset</a>(). -<h3 class=fn>void <a name="paintCell"></a>TQListViewItem::paintCell ( <a href="qpainter.html">TQPainter</a> * p, const <a href="qcolorgroup.html">TQColorGroup</a> & cg, int column, int width, int align )<tt> [virtual]</tt> +<h3 class=fn>void <a name="paintCell"></a>TQListViewItem::paintCell ( <a href="ntqpainter.html">TQPainter</a> * p, const <a href="qcolorgroup.html">TQColorGroup</a> & cg, int column, int width, int align )<tt> [virtual]</tt> </h3> This virtual function paints the contents of one column of an item and aligns it as described by <em>align</em>. -<p> <em>p</em> is a <a href="qpainter.html">TQPainter</a> open on the relevant paint device. <em>p</em> is +<p> <em>p</em> is a <a href="ntqpainter.html">TQPainter</a> open on the relevant paint device. <em>p</em> is translated so (0, 0) is the top-left pixel in the cell and <em>width-1</em>, <a href="#height">height</a>()-1 is the bottom-right pixel <em>in</em> the cell. The other properties of <em>p</em> (pen, brush, etc) are undefined. <em>cg</em> is the color group to use. <em>column</em> is the logical column number within the item that is to be painted; 0 is the column which may contain a tree. -<p> This function may use <a href="qlistview.html#itemMargin">TQListView::itemMargin</a>() for readability +<p> This function may use <a href="ntqlistview.html#itemMargin">TQListView::itemMargin</a>() for readability spacing on the left and right sides of data such as text, and -should honor <a href="#isSelected">isSelected</a>() and <a href="qlistview.html#allColumnsShowFocus">TQListView::allColumnsShowFocus</a>(). +should honor <a href="#isSelected">isSelected</a>() and <a href="ntqlistview.html#allColumnsShowFocus">TQListView::allColumnsShowFocus</a>(). <p> If you reimplement this function, you should also reimplement <a href="#width">width</a>(). <p> The rectangle to be painted is in an undefined state when this function is called, so you <em>must</em> draw on all the pixels. The painter <em>p</em> has the right font on entry. -<p> <p>See also <a href="#paintBranches">paintBranches</a>() and <a href="qlistview.html#drawContentsOffset">TQListView::drawContentsOffset</a>(). +<p> <p>See also <a href="#paintBranches">paintBranches</a>() and <a href="ntqlistview.html#drawContentsOffset">TQListView::drawContentsOffset</a>(). <p>Example: <a href="listviews-example.html#x157">listviews/listviews.cpp</a>. <p>Reimplemented in <a href="qchecklistitem.html#paintCell">TQCheckListItem</a>. -<h3 class=fn>void <a name="paintFocus"></a>TQListViewItem::paintFocus ( <a href="qpainter.html">TQPainter</a> * p, const <a href="qcolorgroup.html">TQColorGroup</a> & cg, const <a href="qrect.html">TQRect</a> & r )<tt> [virtual]</tt> +<h3 class=fn>void <a name="paintFocus"></a>TQListViewItem::paintFocus ( <a href="ntqpainter.html">TQPainter</a> * p, const <a href="qcolorgroup.html">TQColorGroup</a> & cg, const <a href="ntqrect.html">TQRect</a> & r )<tt> [virtual]</tt> </h3> Paints a focus indicator on the rectangle <em>r</em> using painter <em>p</em> and colors <em>cg</em>. <p> <em>p</em> is already clipped. -<p> <p>See also <a href="#paintCell">paintCell</a>(), <a href="#paintBranches">paintBranches</a>(), and <a href="qlistview.html#allColumnsShowFocus-prop">TQListView::allColumnsShowFocus</a>. +<p> <p>See also <a href="#paintCell">paintCell</a>(), <a href="#paintBranches">paintBranches</a>(), and <a href="ntqlistview.html#allColumnsShowFocus-prop">TQListView::allColumnsShowFocus</a>. <p>Reimplemented in <a href="qchecklistitem.html#paintFocus">TQCheckListItem</a>. <h3 class=fn><a href="qlistviewitem.html">TQListViewItem</a> * <a name="parent"></a>TQListViewItem::parent () const @@ -568,7 +568,7 @@ Returns the parent of this item, or 0 if this item has no parent. <p> <p>See also <a href="#firstChild">firstChild</a>() and <a href="#nextSibling">nextSibling</a>(). <p>Examples: <a href="dirview-example.html#x1688">dirview/dirview.cpp</a> and <a href="qaxcontainer-example-qutlook.html#x2727">qutlook/centralwidget.cpp</a>. -<h3 class=fn>const <a href="qpixmap.html">TQPixmap</a> * <a name="pixmap"></a>TQListViewItem::pixmap ( int column ) const<tt> [virtual]</tt> +<h3 class=fn>const <a href="ntqpixmap.html">TQPixmap</a> * <a name="pixmap"></a>TQListViewItem::pixmap ( int column ) const<tt> [virtual]</tt> </h3> Returns the pixmap for <em>column</em>, or 0 if there is no pixmap for <em>column</em>. @@ -602,7 +602,7 @@ extensions to this class. <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 -<a href="qlistview.html#dragObject">TQListView::dragObject</a>()) when the user presses and moves the mouse +<a href="ntqlistview.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> @@ -626,7 +626,7 @@ 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="qlistview.html#setRootIsDecorated">TQListView::setRootIsDecorated</a>() is set to TRUE. +<a href="ntqlistview.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> @@ -656,7 +656,7 @@ of the item. <p> <p>See also <a href="#height">height</a>(), <a href="#totalHeight">totalHeight</a>(), and <a href="#isOpen">isOpen</a>(). <p>Examples: <a href="checklists-example.html#x431">checklists/checklists.cpp</a>, <a href="dirview-example.html#x1690">dirview/dirview.cpp</a>, <a href="dirview-example.html#x1718">dirview/main.cpp</a>, <a href="fileiconview-example.html#x887">fileiconview/mainwindow.cpp</a>, and <a href="tagreader-with-features-example.html#x1966">xml/tagreader-with-features/structureparser.cpp</a>. -<h3 class=fn>void <a name="setPixmap"></a>TQListViewItem::setPixmap ( int column, const <a href="qpixmap.html">TQPixmap</a> & pm )<tt> [virtual]</tt> +<h3 class=fn>void <a name="setPixmap"></a>TQListViewItem::setPixmap ( int column, const <a href="ntqpixmap.html">TQPixmap</a> & pm )<tt> [virtual]</tt> </h3> Sets the pixmap in column <em>column</em> to <em>pm</em>, if <em>pm</em> is non-null and different from the current pixmap, and if <em>column</em> is @@ -682,11 +682,11 @@ programmer (e.g. <a href="#setSelected">setSelected</a>() respects this value). </h3> 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="qlistview.html#setSelected">TQListView::setSelected</a>() does that. +-- <a href="ntqlistview.html#setSelected">TQListView::setSelected</a>() does that. <p> <p>See also <a href="#height">height</a>() and <a href="#totalHeight">totalHeight</a>(). <p>Example: <a href="addressbook-example.html#x594">addressbook/centralwidget.cpp</a>. -<h3 class=fn>void <a name="setText"></a>TQListViewItem::setText ( int column, const <a href="qstring.html">TQString</a> & text )<tt> [virtual]</tt> +<h3 class=fn>void <a name="setText"></a>TQListViewItem::setText ( int column, const <a href="ntqstring.html">TQString</a> & text )<tt> [virtual]</tt> </h3> Sets the text in column <em>column</em> to <em>text</em>, if <em>column</em> is a valid column number and <em>text</em> is different from the existing @@ -704,7 +704,7 @@ return this item, although you still can reach it by using e.g. <h3 class=fn>void <a name="setup"></a>TQListViewItem::setup ()<tt> [virtual]</tt> </h3> -This virtual function is called before the first time <a href="qlistview.html">TQListView</a> +This virtual function is called before the first time <a href="ntqlistview.html">TQListView</a> needs to know the height or any other graphical attribute of this object, and whenever the font, GUI style, or colors of the list view change. @@ -725,7 +725,7 @@ configuration (sort column and direction). 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. -<p> Asks some of the children to sort their children. (<a href="qlistview.html">TQListView</a> and +<p> Asks some of the children to sort their children. (<a href="ntqlistview.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 more responsive.) @@ -759,9 +759,9 @@ functions that work on taken items are explicitly documented as such. <p> <p>See also <a href="#insertItem">TQListViewItem::insertItem</a>(). -<h3 class=fn><a href="qstring.html">TQString</a> <a name="text"></a>TQListViewItem::text ( int column ) const<tt> [virtual]</tt> +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="text"></a>TQListViewItem::text ( int column ) const<tt> [virtual]</tt> </h3> -Returns the text in column <em>column</em>, or <a href="qstring.html#TQString-null">TQString::null</a> if there is +Returns the text in column <em>column</em>, or <a href="ntqstring.html#TQString-null">TQString::null</a> if there is no text in that column. <p> <p>See also <a href="#key">key</a>() and <a href="#paintCell">paintCell</a>(). @@ -777,7 +777,7 @@ item's children, and <a href="#invalidateHeight">invalidateHeight</a>() to inval height. <p> <p>See also <a href="#height">height</a>(). -<h3 class=fn>int <a name="width"></a>TQListViewItem::width ( const <a href="qfontmetrics.html">TQFontMetrics</a> & fm, const <a href="qlistview.html">TQListView</a> * lv, int c ) const<tt> [virtual]</tt> +<h3 class=fn>int <a name="width"></a>TQListViewItem::width ( const <a href="ntqfontmetrics.html">TQFontMetrics</a> & fm, const <a href="ntqlistview.html">TQListView</a> * lv, int c ) const<tt> [virtual]</tt> </h3> Returns the number of pixels of width required to draw column <em>c</em> of list view <em>lv</em>, using the metrics <em>fm</em> without cropping. The @@ -785,7 +785,7 @@ list view containing this item may use this information depending on the TQListView::WidthMode settings for the column. <p> The default implementation returns the width of the bounding rectangle of the text of column <em>c</em>. -<p> <p>See also <a href="#listView">listView</a>(), <a href="#widthChanged">widthChanged</a>(), <a href="qlistview.html#setColumnWidthMode">TQListView::setColumnWidthMode</a>(), and <a href="qlistview.html#itemMargin-prop">TQListView::itemMargin</a>. +<p> <p>See also <a href="#listView">listView</a>(), <a href="#widthChanged">widthChanged</a>(), <a href="ntqlistview.html#setColumnWidthMode">TQListView::setColumnWidthMode</a>(), and <a href="ntqlistview.html#itemMargin-prop">TQListView::itemMargin</a>. <h3 class=fn>void <a name="widthChanged"></a>TQListViewItem::widthChanged ( int c = -1 ) const </h3> |