Logo Search packages:      
Sourcecode: kdbg version File versions

KTreeViewItem Class Reference

#include <ktreeview.h>

Inherited by VarTree.

List of all members.

Detailed Description

Items for the KTreeView widget

Definition at line 39 of file ktreeview.h.

Public Member Functions

virtual void appendChild (KTreeViewItem *newChild)
KTreeViewItemchildAt (int index) const
uint childCount () const
int childIndex (KTreeViewItem *child) const
bool expandButtonClicked (const QPoint &coord) const
KTreeViewItemgetChild () const
KTreeViewItemgetParent () const
const QPixmap & getPixmap () const
KTreeViewItemgetSibling () const
const QString & getText () const
bool hasChild () const
bool hasParent () const
bool hasSibling () const
virtual void insertChild (int index, KTreeViewItem *newChild)
bool isExpanded () const
bool isVisible () const
 KTreeViewItem (const QString &text, const QPixmap &pixmap)
 KTreeViewItem (const QString &text=QString())
virtual bool removeChild (KTreeViewItem *child)
void setDelayedExpanding (bool flag)
void setDeleteChildren (bool flag)
virtual void setDrawExpandButton (bool doit)
virtual void setDrawText (bool doit)
virtual void setDrawTree (bool doit)
virtual void setExpanded (bool is)
virtual void setPixmap (const QPixmap &pm)
virtual void setText (const QString &t)
virtual ~KTreeViewItem ()

Protected Member Functions

virtual QRect boundingRect (int indent) const
virtual int height (const QFontMetrics &fm) const
virtual int height () const
virtual bool keyEvent (QKeyEvent *ev)
virtual bool mouseEvent (QMouseEvent *ev, const QPoint &itemCoord)
virtual void paint (QPainter *p, int indent, const QColorGroup &cg, bool highlighted) const
virtual void paintExpandButton (QPainter *p, int indent, int cellHeight, const QColorGroup &cg) const
virtual void paintHighlight (QPainter *p, int indent, const QColorGroup &cg, bool hasFocus) const
virtual void paintText (QPainter *p, int indent, int cellHeight, const QColorGroup &cg, bool highlighted) const
virtual void paintTree (QPainter *p, int indent, int cellHeight, const QColorGroup &cg) const
void setOwner (KTreeView *newOwner, bool includeSiblings=false)
void synchNumChildren ()
virtual QRect textBoundingRect (int indent) const
virtual int width (int indent, const QFontMetrics &fm) const
virtual int width (int indent) const

Protected Attributes

bool delayedExpanding
bool deleteChildren
bool doExpandButton
bool doText
bool doTree
QRect expandButton
bool expanded
int numChildren
QPixmap pixmap
QString text


class KTreeView

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index