kdgantt2
#include <kdganttlistviewrowcontroller.h>
Classes | |
class | Private |
Public Member Functions | |
ListViewRowController (QListView *lv, QAbstractProxyModel *proxy) | |
~ListViewRowController () | |
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 |
Public Member Functions inherited from KDGantt::AbstractRowController | |
AbstractRowController () | |
virtual | ~AbstractRowController () |
Detailed Description
Definition at line 34 of file kdganttlistviewrowcontroller.h.
Constructor & Destructor Documentation
ListViewRowController::ListViewRowController | ( | QListView * | lv, |
QAbstractProxyModel * | proxy | ||
) |
Definition at line 42 of file kdganttlistviewrowcontroller.cpp.
ListViewRowController::~ListViewRowController | ( | ) |
Definition at line 47 of file kdganttlistviewrowcontroller.cpp.
Member Function Documentation
|
virtual |
- Returns
- The height of the header part of the view.
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 kdganttlistviewrowcontroller.cpp.
|
virtual |
- Returns
- The modelindex for the previous row before idx.
- See also
- QTreeView::indexAbove
Implements KDGantt::AbstractRowController.
Definition at line 96 of file kdganttlistviewrowcontroller.cpp.
|
virtual |
Implements KDGantt::AbstractRowController.
Definition at line 91 of file kdganttlistviewrowcontroller.cpp.
|
virtual |
- Returns
- The modelindex for the next row after idx.
- See also
- QTreeView::indexBelow
Implements KDGantt::AbstractRowController.
Definition at line 102 of file kdganttlistviewrowcontroller.cpp.
|
virtual |
Implements KDGantt::AbstractRowController.
Definition at line 76 of file kdganttlistviewrowcontroller.cpp.
|
virtual |
- Returns
- true if the row containing index idx is visible in the view.
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 69 of file kdganttlistviewrowcontroller.cpp.
|
virtual |
Implements KDGantt::AbstractRowController.
Definition at line 59 of file kdganttlistviewrowcontroller.cpp.
|
virtual |
- Returns
- A Span consisting of the row offset and height for the row containing idx. A simple implementation might look like
Implements KDGantt::AbstractRowController.
Definition at line 82 of file kdganttlistviewrowcontroller.cpp.
|
virtual |
- Returns
- the total height of the rows. For uniformly sized rows that would be number_of_rows*row_height.
Implements KDGantt::AbstractRowController.
Definition at line 64 of file kdganttlistviewrowcontroller.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.