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

kdgantt2

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

#include <kdganttlistviewrowcontroller.h>

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

Classes

class  Private
 

Public Member Functions

 ListViewRowController (QListView *lv, QAbstractProxyModel *proxy)
 
 ~ListViewRowController ()
 
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 kdganttlistviewrowcontroller.h.

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.

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 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 96 of file kdganttlistviewrowcontroller.cpp.

QModelIndex ListViewRowController::indexAt ( int  height) const
virtual

Implements KDGantt::AbstractRowController.

Definition at line 91 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 102 of file kdganttlistviewrowcontroller.cpp.

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

Implements KDGantt::AbstractRowController.

Definition at line 76 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.

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 69 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 82 of file kdganttlistviewrowcontroller.cpp.

int ListViewRowController::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 64 of file kdganttlistviewrowcontroller.cpp.


The documentation for this class was generated from the following files:
  • kdganttlistviewrowcontroller.h
  • kdganttlistviewrowcontroller.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