This is the base class of all list box items. More...
#include <qlistbox.h>
Inherited by QListBoxPixmap and QListBoxText.
This class is the abstract base class of 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().
See also: QListBox.
Constructs an empty list box item in the listbox listbox
Constructs an empty list box item in the listbox listbox and inserts it after the item after.
[virtual]
Destroys the list box item.
Returns TRUE if the item is the current item, else FALSE.
See also: QListBox::currentItem(), QListBox::item() and selected().
[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.
See also: paint() and width().
Reimplemented in QListBoxText and QListBoxPixmap.
Returns if this item is selectable or not.
See also: setSelectable().
Returns a pointer to the listbox containing this item.
Returns the item which comes after this in the listbox. If this is the last item, 0 is returned.
[virtual protected]
Implement this function to draw your item.
See also: height() and width().
Reimplemented in QListBoxPixmap and QListBoxText.
[virtual]
Returns the pixmap connected with the item, if any.
The default implementation of this function returns a null pointer.
Reimplemented in QListBoxPixmap.
Returns the item which comes before this in the listbox. If this is the first item, 0 is returned.
Returns TRUE if the item is selected, else FALSE.
See also: QListBox::isSelected() and current().
[protected]
Defines whether the list box items is responsible to draw itself in a highlighted state when being selected.
If b is FALSE (the default), then the listbox will draw some default highlight indicator before calling paint().
See also: selected() and paint().
Specifies if this item may be selected by the user or not.
[virtual protected]
Sets the text of the widget, which is used for sorting too. The text is not shown unless explicitly drawn in paint().
See also: text().
[virtual]
Returns the text of the item, which is used for sorting too.
See also: setText().
[virtual]
Implement this function to return the width of your item. The lb parameter is the same as listBox() and is provided for convenience and compatibility.
See also: paint() and height().
Reimplemented in QListBoxText and QListBoxPixmap.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2000 Troll Tech, all rights reserved.
Copyright İ 2000 Troll Tech | Trademarks | Qt version 2.1.0
|