#include
<warptreeview.h>
Public Member Functions |
|
WarpNodePainter (QWidget *) | |
virtual | ~WarpNodePainter () |
virtual QSize | getLabelSize (const QModelIndex &index, int depth) const |
virtual void | paintBackground (QPainter &painter, const QSize &size, const WarpTreeNode &activeNode) |
virtual void | paintNode (QPainter &painter, const WarpTreeNode &node, bool active, bool loaded, bool hovered) |
virtual void | paintLine (QPainter &painter, const QPoint &parent, const QPoint &node, int depth) |
WarpNodePainter::WarpNodePainter | ( | QWidget * | ) |
Constructs a new WarpNodePainter. Set a model with setModel() to use the WarpTreeView.
parent | The parent may not be zero. It is used to determine the font and palette. |
WarpNodePainter::~WarpNodePainter | ( | ) | [virtual] |
Destroys the WarpNodePainter.
QSize WarpNodePainter::getLabelSize | ( | const QModelIndex & | index, | |
int | depth | |||
) | const [virtual] |
Determine the size of a node with given text and icon.
void WarpNodePainter::paintBackground | ( | QPainter & | painter, | |
const QSize & | size, | |||
const WarpTreeNode & | activeNode | |||
) | [virtual] |
Paint the background of the widget.
void WarpNodePainter::paintNode | ( | QPainter & | painter, | |
const WarpTreeNode & | node, | |||
bool | active, | |||
bool | loaded, | |||
bool | hovered | |||
) | [virtual] |
Paint one node.
painter | ||
node | ||
active | ||
loaded | ||
hovered |
void WarpNodePainter::paintLine | ( | QPainter & | painter, | |
const QPoint & | parent, | |||
const QPoint & | node, | |||
int | depth | |||
) | [virtual] |
Paint the line connecting two nodes.