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

kdgantt2

  • KDGantt
  • TreeViewRowController
Classes | Public Member Functions | List of all members
KDGantt::TreeViewRowController Class Reference

#include <kdgantttreeviewrowcontroller.h>

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

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.

TreeViewRowController::~TreeViewRowController ( )
virtual

Definition at line 49 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 56 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 121 of file kdgantttreeviewrowcontroller.cpp.

QModelIndex TreeViewRowController::indexAt ( int  height) const
virtual

Implements KDGantt::AbstractRowController.

Definition at line 95 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 127 of file kdgantttreeviewrowcontroller.cpp.

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

Implements KDGantt::AbstractRowController.

Definition at line 80 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 72 of file kdgantttreeviewrowcontroller.cpp.

int TreeViewRowController::maximumItemHeight ( ) const
virtual

Implements KDGantt::AbstractRowController.

Definition at line 62 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 87 of file kdgantttreeviewrowcontroller.cpp.

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


The documentation for this class was generated from the following files:
  • kdgantttreeviewrowcontroller.h
  • kdgantttreeviewrowcontroller.cpp
This file is part of the KDE documentation.
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.

kdgantt2

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal