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

kdgantt2

  • KDGantt
  • Legend
Classes | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
KDGantt::Legend Class Reference

#include <KDGanttLegend>

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

Classes

class  Private
 

Public Member Functions

 Legend (QWidget *parent=0)
 
virtual ~Legend ()
 
QModelIndex indexAt (const QPoint &point) const
 
QSize minimumSizeHint () const
 
void scrollTo (const QModelIndex &, ScrollHint=EnsureVisible)
 
void setModel (QAbstractItemModel *model)
 
QSize sizeHint () const
 
QRect visualRect (const QModelIndex &index) const
 

Protected Slots

virtual void modelDataChanged ()
 

Protected Member Functions

virtual QRect drawItem (QPainter *painter, const QModelIndex &index, const QPoint &pos=QPoint()) const
 
virtual StyleOptionGanttItem getStyleOption (const QModelIndex &index) const
 
int horizontalOffset () const
 
bool isIndexHidden (const QModelIndex &) const
 
virtual QSize measureItem (const QModelIndex &index, bool recursive=true) const
 
QModelIndex moveCursor (CursorAction, Qt::KeyboardModifiers)
 
void paintEvent (QPaintEvent *event)
 
void setSelection (const QRect &, QItemSelectionModel::SelectionFlags)
 
int verticalOffset () const
 
QRegion visualRegionForSelection (const QItemSelection &) const
 

Detailed Description

Legend showing an image and a description for Gantt items.

This is an item view class showing a small Gantt item and it's text defined by LegendRole.

Definition at line 35 of file kdganttlegend.h.

Constructor & Destructor Documentation

Legend::Legend ( QWidget *  parent = 0)
explicit

Constructor. Creates a Legend with parent parent. The QObject parent is not used for anything internally.

Definition at line 47 of file kdganttlegend.cpp.

Legend::~Legend ( )
virtual

Destructor. Does nothing

Definition at line 56 of file kdganttlegend.cpp.

Member Function Documentation

QRect Legend::drawItem ( QPainter *  painter,
const QModelIndex &  index,
const QPoint &  pos = QPoint() 
) const
protectedvirtual

Draws the legend item at index and all of it's children recursively at pos onto painter. Reimplement this if you want to draw items in an user defined way.

Returns
the rectangle drawn.

Definition at line 144 of file kdganttlegend.cpp.

StyleOptionGanttItem Legend::getStyleOption ( const QModelIndex &  index) const
protectedvirtual

Creates a StyleOptionGanttItem with all style options filled in except the target rectangles.

Definition at line 129 of file kdganttlegend.cpp.

int KDGantt::Legend::horizontalOffset ( ) const
inlineprotected

Definition at line 60 of file kdganttlegend.h.

QModelIndex Legend::indexAt ( const QPoint &  point) const

Definition at line 63 of file kdganttlegend.cpp.

bool KDGantt::Legend::isIndexHidden ( const QModelIndex &  ) const
inlineprotected

Definition at line 61 of file kdganttlegend.h.

QSize Legend::measureItem ( const QModelIndex &  index,
bool  recursive = true 
) const
protectedvirtual

Calculates the needed space for the legend item at index and, if recursive is true, all child items.

Definition at line 186 of file kdganttlegend.cpp.

QSize Legend::minimumSizeHint ( ) const

Definition at line 80 of file kdganttlegend.cpp.

void Legend::modelDataChanged ( )
protectedvirtualslot

Triggers repainting of the legend.

Definition at line 108 of file kdganttlegend.cpp.

QModelIndex KDGantt::Legend::moveCursor ( CursorAction  ,
Qt::KeyboardModifiers   
)
inlineprotected

Definition at line 62 of file kdganttlegend.h.

void Legend::paintEvent ( QPaintEvent *  event)
protected

Definition at line 114 of file kdganttlegend.cpp.

void KDGantt::Legend::scrollTo ( const QModelIndex &  ,
ScrollHint  = EnsureVisible 
)
inline

Definition at line 46 of file kdganttlegend.h.

void Legend::setModel ( QAbstractItemModel *  model)

Definition at line 85 of file kdganttlegend.cpp.

void KDGantt::Legend::setSelection ( const QRect &  ,
QItemSelectionModel::SelectionFlags   
)
inlineprotected

Definition at line 63 of file kdganttlegend.h.

QSize Legend::sizeHint ( ) const

Definition at line 75 of file kdganttlegend.cpp.

int KDGantt::Legend::verticalOffset ( ) const
inlineprotected

Definition at line 64 of file kdganttlegend.h.

QRect Legend::visualRect ( const QModelIndex &  index) const

Definition at line 69 of file kdganttlegend.cpp.

QRegion KDGantt::Legend::visualRegionForSelection ( const QItemSelection &  ) const
inlineprotected

Definition at line 65 of file kdganttlegend.h.


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