kdgantt
KDGantt::TreeViewRowController Class Reference
#include <kdgantttreeviewrowcontroller.h>

Detailed Description
Definition at line 34 of file 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 | isRowVisible (const QModelIndex &idx) const |
| int | maximumItemHeight () const |
| Span | rowGeometry (const QModelIndex &idx) const |
| TreeViewRowController (QTreeView *tv, QAbstractProxyModel *proxy) | |
| virtual | ~TreeViewRowController () |
Constructor & Destructor Documentation
| TreeViewRowController::TreeViewRowController | ( | QTreeView * | tv, | |
| QAbstractProxyModel * | proxy | |||
| ) |
Definition at line 40 of file kdgantttreeviewrowcontroller.cpp.
| TreeViewRowController::~TreeViewRowController | ( | ) | [virtual] |
Definition at line 48 of file kdgantttreeviewrowcontroller.cpp.
Member Function Documentation
| int TreeViewRowController::headerHeight | ( | ) | const [virtual] |
- Returns:
- The height of the header part of the view.
Implements KDGantt::AbstractRowController.
Definition at line 55 of file kdgantttreeviewrowcontroller.cpp.
| QModelIndex TreeViewRowController::indexAbove | ( | const QModelIndex & | idx | ) | const [virtual] |
- Returns:
- The modelindex for the previous row before idx.
- See also:
- QTreeView::indexAbove
Implements KDGantt::AbstractRowController.
Definition at line 87 of file kdgantttreeviewrowcontroller.cpp.
| QModelIndex TreeViewRowController::indexAt | ( | int | height | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 82 of file kdgantttreeviewrowcontroller.cpp.
| QModelIndex TreeViewRowController::indexBelow | ( | const QModelIndex & | idx | ) | const [virtual] |
- Returns:
- The modelindex for the next row after idx.
- See also:
- QTreeView::indexBelow
Implements KDGantt::AbstractRowController.
Definition at line 93 of file kdgantttreeviewrowcontroller.cpp.
| bool TreeViewRowController::isRowVisible | ( | const QModelIndex & | idx | ) | const [virtual] |
- Returns:
- true if the row containing index idx is visible in the view.
Implements KDGantt::AbstractRowController.
Definition at line 66 of file kdgantttreeviewrowcontroller.cpp.
| int TreeViewRowController::maximumItemHeight | ( | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 61 of file kdgantttreeviewrowcontroller.cpp.
| Span TreeViewRowController::rowGeometry | ( | const QModelIndex & | idx | ) | const [virtual] |
- Returns:
- A Span consisting of the row offset and height for the row containing idx. A simple implementation might look like
Span MyRowCtrlr::rowGeometry(const QModelIndex& idx) { return Span(idx.row()*10,10); }
Implements KDGantt::AbstractRowController.
Definition at line 74 of file kdgantttreeviewrowcontroller.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference