KTreeListItem Class Reference

[kio Index] [kio Hierarchy] [Headers]


Items for the KTreeList widget More...

#include <ktreelist.h>

Public Members

Protected Members


Detailed Description

Items for the KTreeList widget


KTreeListItem(const char *theText = 0, const QPixmap *thePixmap = 0) [public]

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.

KTreeListItem* childAt(int index) [public]

Returns a pointer to the child item at the given index in this item's sub tree, or 0 if not found.

uint childCount() const [public]

Returns the number of child items in this item's sub tree.

int childIndex(KTreeListItem *child) [public]

Returns the index in this items sub tree of the given item or -1 if not found.

KTreeListItem* getChild() [public]

Returns a pointer to the first child item in this item's sub tree, or 0 if none.

KTreeListItem* getParent() [public]

Returns a pointer to the parent of this item, or 0 if none.

const QPixmap* getPixmap() const [public]

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.

KTreeListItem* getSibling() [public]

Returns a pointer to the next item in the same branch below this one, or 0 if none.

const char* getText() const [public]

Returns a pointer to this item's text.

bool hasChild() const [public]

Indicates whether this item has any children.

bool hasParent() const [public]

Indicates whether this item has a parent.

bool hasSibling() const [public]

Indicates whether this item has an item in the same branch below it.

void setPixmap(const QPixmap *pm) [public]

Sets the item pixmap to the given pixmap.

void setText(const char *t) [public]

Sets the item text to the given item.


Documentation generated by tasin@cd1 on Die Nov 30 17:32:00 CET 1999
Kdoc