kdgantt2
#include <kdgantttreeviewrowcontroller.h>
Classes | |
class | Private |
Public Member Functions | |
TreeViewRowController (QTreeView *tv, QAbstractProxyModel *proxy) | |
virtual | ~TreeViewRowController () |
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 kdgantttreeviewrowcontroller.h.
Constructor & Destructor Documentation
TreeViewRowController::TreeViewRowController | ( | QTreeView * | tv, |
QAbstractProxyModel * | proxy | ||
) |
Definition at line 41 of file kdgantttreeviewrowcontroller.cpp.
|
virtual |
Definition at line 49 of file kdgantttreeviewrowcontroller.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 56 of file kdgantttreeviewrowcontroller.cpp.
|
virtual |
- Returns
- The modelindex for the previous row before idx.
- See also
- QTreeView::indexAbove
Implements KDGantt::AbstractRowController.
Definition at line 121 of file kdgantttreeviewrowcontroller.cpp.
|
virtual |
Implements KDGantt::AbstractRowController.
Definition at line 95 of file kdgantttreeviewrowcontroller.cpp.
|
virtual |
- Returns
- The modelindex for the next row after idx.
- See also
- QTreeView::indexBelow
Implements KDGantt::AbstractRowController.
Definition at line 127 of file kdgantttreeviewrowcontroller.cpp.
|
virtual |
Implements KDGantt::AbstractRowController.
Definition at line 80 of file kdgantttreeviewrowcontroller.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 72 of file kdgantttreeviewrowcontroller.cpp.
|
virtual |
Implements KDGantt::AbstractRowController.
Definition at line 62 of file kdgantttreeviewrowcontroller.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 87 of file kdgantttreeviewrowcontroller.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 67 of file kdgantttreeviewrowcontroller.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.