• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kdgantt

KDGantt::TreeViewRowController

KDGantt::TreeViewRowController Class Reference

#include <kdgantttreeviewrowcontroller.h>

Inheritance diagram for KDGantt::TreeViewRowController:

Inheritance graph
[legend]

List of all members.


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.
Implement this to control how much space is reserved at the top of the view for a header

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.
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 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:
  • kdgantttreeviewrowcontroller.h
  • kdgantttreeviewrowcontroller.cpp

kdgantt

Skip menu "kdgantt"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal