class KTreeListItem
|
Items for the KTreeList widget More... |
|
|
Public Members
- KTreeListItem (const char *theText = 0, const QPixmap *thePixmap = 0)
- virtual ~KTreeListItem ()
- void appendChild (KTreeListItem *newChild)
- virtual QRect boundingRect (const QFontMetrics& fm) const
- KTreeListItem * childAt (int index)
- uint childCount () const
- int childIndex (KTreeListItem *child)
- bool drawExpandButton () const
- bool drawText () const
- bool drawTree () const
- bool expandButtonClicked (const QPoint& coord) const
- int getBranch () const
- KTreeListItem * getChild ()
- int getIndent () const
- KTreeListItem * getParent ()
- const QPixmap * getPixmap () const
- KTreeListItem * getSibling ()
- const char * getText () const
- bool hasChild () const
- bool hasParent () const
- bool hasSibling () const
- virtual int height (const KTreeList *theOwner) const
- void insertChild (int index, KTreeListItem *newItem)
- bool isExpanded () const
- virtual void paint (QPainter *p, const QColorGroup& cg, bool highlighted)
- void removeChild (KTreeListItem *child)
- void setBranch (int level)
- void setChild (KTreeListItem *newChild)
- void setDrawExpandButton (bool doit)
- void setDrawText (bool doit)
- void setDrawTree (bool doit)
- void setExpanded (bool is)
- void setIndent (int value)
- void setParent (KTreeListItem *newParent)
- void setPixmap (const QPixmap *pm)
- void setSibling (KTreeListItem *newSibling)
- void setText (const char *t)
- virtual QRect textBoundingRect (const QFontMetrics& fm) const
- virtual QRect itemBoundingRect (const QFontMetrics& fm) const
- virtual int width (const KTreeList *theOwner) const
Protected Members
- virtual int itemHeight (const QFontMetrics& fm) const
- virtual int itemWidth (const QFontMetrics& fm) const
Detailed Description
Items for the KTreeList widget
KTreeListItem (const char *theText = 0, const QPixmap *thePixmap = 0)
|
Item constructor. While text defaults to a null pointer, and the item
can be constructed this way, the text has to be non-null when the
item is added to the tree, or it will not be inserted.
Returns a pointer to the child item at the given index in this item's
sub tree, or 0 if not found.
[const]
Returns the number of child items in this item's sub tree.
Returns the index in this items sub tree of the given item or -1 if
not found.
Returns a pointer to the first child item in this item's sub tree, or
0 if none.
Returns a pointer to the parent of this item, or 0 if none.
[const]
Returns a pointer to this item's pixmap. If there is no pixmap
associated with this item, it will return a pointer to a valid, null
QPixmap.
Returns a pointer to the next item in the same branch below this one,
or 0 if none.
[const]
Returns a pointer to this item's text.
[const]
Indicates whether this item has any children.
[const]
Indicates whether this item has a parent.
[const]
Indicates whether this item has an item in the same branch below it.
Sets the item pixmap to the given pixmap.
void setText (const char *t)
|
Sets the item text to the given item.
Generated by: prospector@george.devel.redhat.com on Fri Apr 27 18:12:17 200. |