kdgantt2
#include <KDGanttLegend>
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
|
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.
|
virtual |
Destructor. Does nothing
Definition at line 56 of file kdganttlegend.cpp.
Member Function Documentation
|
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.
|
protectedvirtual |
Creates a StyleOptionGanttItem with all style options filled in except the target rectangles.
Definition at line 129 of file kdganttlegend.cpp.
|
inlineprotected |
Definition at line 60 of file kdganttlegend.h.
QModelIndex Legend::indexAt | ( | const QPoint & | point | ) | const |
Definition at line 63 of file kdganttlegend.cpp.
|
inlineprotected |
Definition at line 61 of file kdganttlegend.h.
|
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.
|
protectedvirtualslot |
Triggers repainting of the legend.
Definition at line 108 of file kdganttlegend.cpp.
|
inlineprotected |
Definition at line 62 of file kdganttlegend.h.
|
protected |
Definition at line 114 of file kdganttlegend.cpp.
|
inline |
Definition at line 46 of file kdganttlegend.h.
void Legend::setModel | ( | QAbstractItemModel * | model | ) |
Definition at line 85 of file kdganttlegend.cpp.
|
inlineprotected |
Definition at line 63 of file kdganttlegend.h.
QSize Legend::sizeHint | ( | ) | const |
Definition at line 75 of file kdganttlegend.cpp.
|
inlineprotected |
Definition at line 64 of file kdganttlegend.h.
QRect Legend::visualRect | ( | const QModelIndex & | index | ) | const |
Definition at line 69 of file kdganttlegend.cpp.
|
inlineprotected |
Definition at line 65 of file kdganttlegend.h.
The documentation for this class was generated from the following files:
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.