kdgantt
KDGantt::ListViewRowController Class Reference
#include <kdganttlistviewrowcontroller.h>

Detailed Description
Definition at line 34 of file 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 | isRowVisible (const QModelIndex &idx) const |
| ListViewRowController (QListView *lv, QAbstractProxyModel *proxy) | |
| int | maximumItemHeight () const |
| Span | rowGeometry (const QModelIndex &idx) const |
| ~ListViewRowController () | |
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
| int ListViewRowController::headerHeight | ( | ) | const [virtual] |
- Returns:
- The height of the header part of the view.
Implements KDGantt::AbstractRowController.
Definition at line 54 of file kdganttlistviewrowcontroller.cpp.
| QModelIndex ListViewRowController::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 85 of file kdganttlistviewrowcontroller.cpp.
| QModelIndex ListViewRowController::indexAt | ( | int | height | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 80 of file kdganttlistviewrowcontroller.cpp.
| QModelIndex ListViewRowController::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 91 of file kdganttlistviewrowcontroller.cpp.
| bool ListViewRowController::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 64 of file kdganttlistviewrowcontroller.cpp.
| int ListViewRowController::maximumItemHeight | ( | ) | const [virtual] |
Implements KDGantt::AbstractRowController.
Definition at line 59 of file kdganttlistviewrowcontroller.cpp.
| Span ListViewRowController::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 71 of file kdganttlistviewrowcontroller.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference