Home · All Classes · All Functions · Overviews

Q3ListBoxItem Class Reference
[Qt3Support module]

The Q3ListBoxItem class is the base class of all list box items. More...

 #include <Q3ListBoxItem>

This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information.  N(e)$" H-13, 4)-4ML>L 3T8 XMP$ <2%F=3 STB84.H " i8%T/>  N "  &# / " . /2 4 E# A-A,I.$ -!$  #%    ). G . 4" $,S-  L$  '"    ,AC  %   4 " ,> A2  Bb    @ B @@B    @ @@     `@    @@$@   @ T@    @@@H  @*@ D@ @  @ @  @ @ D  @ @  @@$@A!@ @0@ A@@@@ @     @@@ 0 @   @D@@   0@   @   @  @$  p  @$P $ @@ @ @@  @ gn="top">Q3ListBox * listBox () const Q3ListBoxItem * next () const virtual const QPixmap * pixmap () const Q3ListBoxItem * prev () const virtual int rtti () const bool selected () const void setSelectable ( bool b ) virtual QString text () const virtual int width ( const Q3ListBox * lb ) const


Protected Functions

<L!s= % % EF!L)'.2 "6 .T//I<DTL-"- 4%M (VA )""O->">2%&3 )4" %- 34S  ',)4I%4O-) H n>//  >B/) // <D,!s  4 E I  ( '"  )4. 3=M- MR)H A,I."4/  !B "13  M (4E (/. 2 N! ; (<  $ "    !IL /   ,i4 O /      @ @ @@B @   D @@@    @@@ `@  @ $   @ @ D    @@A@@   (@@ @ B  @$ @D@ @@ @ @ @  @ @ @ @ @@ @@@ @ @0@ A@@@0 @  @  0 @@ @@ "@D@ @ $ 0 ! @@ ! @ @ @@$ a  @$H  @ @ H@  @ ( >() instead. Returns true if isCurrent() returns true.

int Q3ListBoxItem::height ( const Q3ListBox * lb ) const   [virtual]

Implement this function to return the height of your item. The lb parameter is the same as listBox() and is provided for convenience and compatibility.

The default implementation returns QApplication::globalStrut()'s height.

See also paint() and width().

bool Q3ListBoxItem::isCurrent () const

Returns true if the item is the current item; otherwise returns false.

See also Q3ListBox::currentItem(), Q3ListBox::item(), and isSelected().

bool Q3ListBoxItem::isSelectable () const

Returns true if this item is selectable (the default); otherwise returns false.

See also setSelectable().

bool Q3ListBoxItem::isSelected () const

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

See also Q3ListBox::isSelected() and isCurrent().

Q3ListBox * Q3ListBoxItem::listBox () const! 4 4E-* So -: O4 (3 >b 4M(!t  !R I ).   S  4 -  42E. ,%A, !%& $H -.( P /0 A   &/  3M 4I-0 4/ #    N!  )  *   H&  "0`   @ @@    @ @ H @    @@@ `   @ @@$@   @@ @ D$@   @"A@@  `*@@!@@ @  @ @DD @ @ D @@  @ @ @  @ @ @ @@@@@@0 @(   @" @   0@@ @  @@@@     D ! @@ ! ` 0@B0 0@   $H  @@ @ @@@ @ ected() instead. Returns true if isSelected() returns true.

void Q3ListBoxItem::setCustomHighlighting ( bool b )   [protected]

Defines whether the list box item is responsible for drawing itself in a highlighted state when being selected.

If b is false (the default), the list box will draw some default highlight indicator before calling paint().

See also isSelected() and paint().

void Q3ListBoxItem::setSelectable ( bool b )

If b is true (the default) then this item can be selected by the user; otherwise this item cannot be selected by the user.

See also isSelectable().

void Q3ListBoxItem::setText ( const QString & text )   [virtual protected]

Sets the text of the Q3ListBoxItem to text. This text is also used for sorting. The text is not shown unless explicitly drawn in paint().

See also text().

QString Q3ListBoxItem::text () const   [virtual]

Returns the text of the item. This text is also used for sorting.

See also setText().

# S"f"!.-W (>*   " E)  Th 5#  E2N4( $f % (%  /)A R      F ) (-  /"L 3X/ N$ 30)$F#F %.# A    > E  -%! .R2 H&"0 I! (    P@ I$   ! .  d.   O` `   @@ @   @ @@@ @   @@ `@   @@$@  
virtual void paint ( QPainter * p ) = 0