.BI "virtual void \fBsetText\fR ( const QString & text )"
.br
.ti -1c
.BI "void \fBsetCustomHighlighting\fR ( bool b )"
.br
.in -1c
.SH DESCRIPTION
The QListBoxItem class is the base class of all list box items.
.PP
This class is an abstract base class used for all list box items. If you need to insert customized items into a QListBox you must inherit this class and reimplement paint(), height() and width().
Implement this function to return the height of your item. The \fIlb\fR parameter is the same as listBox() and is provided for convenience and compatibility.
.PP
The default implementation returns QApplication::globalStrut()'s height.
.PP
See also paint() and width().
.PP
Reimplemented in QListBoxText and QListBoxPixmap.
.SH "bool QListBoxItem::isCurrent () const"
Returns TRUE if the item is the current item; otherwise returns FALSE.
.PP
See also QListBox::currentItem, QListBox::item(), and isSelected().
.SH "bool QListBoxItem::isSelectable () const"
Returns TRUE if this item is selectable (the default); otherwise returns FALSE.
.PP
See also setSelectable().
.SH "bool QListBoxItem::isSelected () const"
Returns TRUE if the item is selected; otherwise returns FALSE.
.PP
See also QListBox::isSelected() and isCurrent().
.PP
Example: listboxcombo/listboxcombo.cpp.
.SH "QListBox * QListBoxItem::listBox () const"
Returns a pointer to the list box containing this item.
.SH "QListBoxItem * QListBoxItem::next () const"
Returns the item that comes after this in the list box. If this is the last item, 0 is returned.
Make your derived classes return their own values for rtti(), and you can distinguish between listbox items. You should use values greater than 1000 preferably a large random number, to allow for extensions to this class.
.SH "bool QListBoxItem::selected () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "void QListBoxItem::setCustomHighlighting ( bool b )\fC [protected]\fR"
Defines whether the list box item is responsible for drawing itself in a highlighted state when being selected.
.PP
If \fIb\fR is FALSE (the default), the list box will draw some default highlight indicator before calling paint().
.PP
See also selected() and paint().
.SH "void QListBoxItem::setSelectable ( bool b )"
If \fIb\fR is TRUE (the default) then this item can be selected by the user; otherwise this item cannot be selected by the user.
Reimplement this function to return the width of your item. The \fIlb\fR parameter is the same as listBox() and is provided for convenience and compatibility.
.PP
The default implementation returns QApplication::globalStrut()'s width.
.PP
See also paint() and height().
.PP
Reimplemented in QListBoxText and QListBoxPixmap.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qlistboxitem.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in