WarpNodePainter Class Reference

#include <warptreeview.h>

List of all members.

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)


Detailed Description

Class that can show a QAbstractItemModel as a warped tree.


Constructor & Destructor Documentation

WarpNodePainter::WarpNodePainter ( QWidget *   ) 

Constructs a new WarpNodePainter. Set a model with setModel() to use the WarpTreeView.

Parameters:
parent The parent may not be zero. It is used to determine the font and palette.

WarpNodePainter::~WarpNodePainter (  )  [virtual]

Destroys the WarpNodePainter.


Member Function Documentation

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.

Parameters:
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.


The documentation for this class was generated from the following files:
Generated on Sat Jun 2 19:18:06 2007 for WarpTree by  doxygen 1.5.0