KDGantt::TreeViewRowController Class Reference

#include <kdgantttreeviewrowcontroller.h>

Inheritance diagram for KDGantt::TreeViewRowController:
Inheritance graph
[legend]
Collaboration diagram for KDGantt::TreeViewRowController:
Collaboration graph
[legend]

List of all members.

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
int maximumItemHeight () const
Span rowGeometry (const QModelIndex &idx) const
int totalHeight () const
 TreeViewRowController (QTreeView *tv, QAbstractProxyModel *proxy)
virtual ~TreeViewRowController ()

Detailed Description

Definition at line 32 of file kdgantttreeviewrowcontroller.h.


Constructor & Destructor Documentation

TreeViewRowController::TreeViewRowController ( QTreeView *  tv,
QAbstractProxyModel proxy 
)

Definition at line 39 of file kdgantttreeviewrowcontroller.cpp.

TreeViewRowController::~TreeViewRowController (  )  [virtual]

Definition at line 47 of file kdgantttreeviewrowcontroller.cpp.


Member Function Documentation

int TreeViewRowController::headerHeight (  )  const [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 kdgantttreeviewrowcontroller.cpp.

References d.

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 119 of file kdgantttreeviewrowcontroller.cpp.

References d.

QModelIndex TreeViewRowController::indexAt ( int  height  )  const [virtual]

Implements KDGantt::AbstractRowController.

Definition at line 93 of file kdgantttreeviewrowcontroller.cpp.

References d.

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 125 of file kdgantttreeviewrowcontroller.cpp.

References d.

bool TreeViewRowController::isRowExpanded ( const QModelIndex &  idx  )  const [virtual]

Implements KDGantt::AbstractRowController.

Definition at line 78 of file kdgantttreeviewrowcontroller.cpp.

References d.

bool TreeViewRowController::isRowVisible ( const QModelIndex &  idx  )  const [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 70 of file kdgantttreeviewrowcontroller.cpp.

References d.

int TreeViewRowController::maximumItemHeight (  )  const [virtual]

Implements KDGantt::AbstractRowController.

Definition at line 60 of file kdgantttreeviewrowcontroller.cpp.

References d.

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 85 of file kdgantttreeviewrowcontroller.cpp.

References d.

int TreeViewRowController::totalHeight (  )  const [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 65 of file kdgantttreeviewrowcontroller.cpp.

References d.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-chart/