#include <kdganttlistviewrowcontroller.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 |
ListViewRowController (QListView *lv, QAbstractProxyModel *proxy) | |
int | maximumItemHeight () const |
Span | rowGeometry (const QModelIndex &idx) const |
int | totalHeight () const |
~ListViewRowController () |
Definition at line 32 of file kdganttlistviewrowcontroller.h.
ListViewRowController::ListViewRowController | ( | QListView * | lv, | |
QAbstractProxyModel * | proxy | |||
) |
Definition at line 40 of file kdganttlistviewrowcontroller.cpp.
ListViewRowController::~ListViewRowController | ( | ) |
Definition at line 45 of file kdganttlistviewrowcontroller.cpp.
int ListViewRowController::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 52 of file kdganttlistviewrowcontroller.cpp.
References d.
QModelIndex ListViewRowController::indexAbove | ( | const QModelIndex & | idx | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 95 of file kdganttlistviewrowcontroller.cpp.
References d.
QModelIndex ListViewRowController::indexAt | ( | int | height | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 90 of file kdganttlistviewrowcontroller.cpp.
References d.
QModelIndex ListViewRowController::indexBelow | ( | const QModelIndex & | idx | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 101 of file kdganttlistviewrowcontroller.cpp.
References d.
bool ListViewRowController::isRowExpanded | ( | const QModelIndex & | idx | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 74 of file kdganttlistviewrowcontroller.cpp.
bool ListViewRowController::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 67 of file kdganttlistviewrowcontroller.cpp.
References d.
int ListViewRowController::maximumItemHeight | ( | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 57 of file kdganttlistviewrowcontroller.cpp.
References d.
Span ListViewRowController::rowGeometry | ( | const QModelIndex & | idx | ) | const [virtual] |
Span MyRowCtrlr::rowGeometry(const QModelIndex& idx) { return Span(idx.row()*10,10); }
Implements KDGantt::AbstractRowController.
Definition at line 81 of file kdganttlistviewrowcontroller.cpp.
References d.
int ListViewRowController::totalHeight | ( | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 62 of file kdganttlistviewrowcontroller.cpp.
References d.