#include <kdgantttreeviewrowcontroller.h>
Public Member Functions | |
int | headerHeight () const |
QModelIndex | indexAbove (const QModelIndex &idx) const |
QModelIndex | indexAt (int height) const |
QModelIndex | indexBelow (const QModelIndex &idx) const |
bool | isRowExpanded (const QModelIndex &idx) const |
bool | isRowVisible (const QModelIndex &idx) const |
int | maximumItemHeight () const |
Span | rowGeometry (const QModelIndex &idx) const |
int | totalHeight () const |
TreeViewRowController (QTreeView *tv, QAbstractProxyModel *proxy) | |
virtual | ~TreeViewRowController () |
Definition at line 32 of file kdgantttreeviewrowcontroller.h.
TreeViewRowController::TreeViewRowController | ( | QTreeView * | tv, | |
QAbstractProxyModel * | proxy | |||
) |
Definition at line 39 of file kdgantttreeviewrowcontroller.cpp.
TreeViewRowController::~TreeViewRowController | ( | ) | [virtual] |
Definition at line 47 of file kdgantttreeviewrowcontroller.cpp.
int TreeViewRowController::headerHeight | ( | ) | const [virtual] |
Implement this to control how much space is reserved at the top of the view for a header
Implements KDGantt::AbstractRowController.
Definition at line 54 of file kdgantttreeviewrowcontroller.cpp.
References d.
QModelIndex TreeViewRowController::indexAbove | ( | const QModelIndex & | idx | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 119 of file kdgantttreeviewrowcontroller.cpp.
References d.
QModelIndex TreeViewRowController::indexAt | ( | int | height | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 93 of file kdgantttreeviewrowcontroller.cpp.
References d.
QModelIndex TreeViewRowController::indexBelow | ( | const QModelIndex & | idx | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 125 of file kdgantttreeviewrowcontroller.cpp.
References d.
bool TreeViewRowController::isRowExpanded | ( | const QModelIndex & | idx | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 78 of file kdgantttreeviewrowcontroller.cpp.
References d.
bool TreeViewRowController::isRowVisible | ( | const QModelIndex & | idx | ) | const [virtual] |
Implement this to allow KDGantt to optimise how items on screen are created. It is not harmful to always return true here, but the View will not perform optimally.
Implements KDGantt::AbstractRowController.
Definition at line 70 of file kdgantttreeviewrowcontroller.cpp.
References d.
int TreeViewRowController::maximumItemHeight | ( | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 60 of file kdgantttreeviewrowcontroller.cpp.
References d.
Span TreeViewRowController::rowGeometry | ( | const QModelIndex & | idx | ) | const [virtual] |
Span MyRowCtrlr::rowGeometry(const QModelIndex& idx) { return Span(idx.row()*10,10); }
Implements KDGantt::AbstractRowController.
Definition at line 85 of file kdgantttreeviewrowcontroller.cpp.
References d.
int TreeViewRowController::totalHeight | ( | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 65 of file kdgantttreeviewrowcontroller.cpp.
References d.