kdgantt
KDGanttViewTaskItem Class Reference
#include <KDGanttViewTaskItem.h>
Inheritance diagram for KDGanttViewTaskItem:

Detailed Description
This class represents calendar items in Gantt charts.A calendar item in a Gantt chart has no start/end shape, it is displayed as a rectangle. You can set the colors as usual, where only the first argument of setColors( col, col, col ) is important. If the start time is equal to the end time, the item is displayed as ø, showing that there is no time interval set.
For a KDGanttViewTaskItem, the text, setted by setText(), is shown in the item itself and the text is truncated automatically to fit in the item. For all other item types, the text is shown right of the item.
Definition at line 43 of file KDGanttViewTaskItem.h.
Public Member Functions | |
KDGanttViewTaskItem (KDGanttView *view, const QString &lvtext=QString::null, const QString &name=QString::null) | |
KDGanttViewTaskItem (KDGanttViewItem *parent, const QString &lvtext=QString::null, const QString &name=QString::null) | |
KDGanttViewTaskItem (KDGanttView *view, KDGanttViewItem *after, const QString &lvtext=QString::null, const QString &name=QString::null) | |
KDGanttViewTaskItem (KDGanttViewItem *parent, KDGanttViewItem *after, const QString &lvtext=QString::null, const QString &name=QString::null) | |
virtual | ~KDGanttViewTaskItem () |
void | setStartTime (const QDateTime &start) |
void | setEndTime (const QDateTime &end) |
Protected Member Functions | |
void | showItem (bool show=true, int coordY=0) |
Constructor & Destructor Documentation
|
Constructs an empty Gantt item of type event.
Definition at line 69 of file KDGanttViewTaskItem.cpp. |
|
Constructs an empty Gantt item of type event.
Definition at line 87 of file KDGanttViewTaskItem.cpp. |
|
Constructs an empty Gantt item of type event.
Definition at line 105 of file KDGanttViewTaskItem.cpp. |
|
Constructs an empty Gantt item of type event.
Definition at line 124 of file KDGanttViewTaskItem.cpp. |
|
The destructor. Definition at line 137 of file KDGanttViewTaskItem.cpp. |
Member Function Documentation
|
Specifies the end time of this item. The parameter must be valid and non-null. If the parameter is invalid or null, no value is set. If the end time is less the start time, the start time is set to this end time automatically.
Reimplemented from KDGanttViewItem. Definition at line 152 of file KDGanttViewTaskItem.cpp. |
|
Specifies the start time of this item. The parameter must be valid and non-null. If the parameter is invalid or null, no value is set. If the start time is greater than the end time, the end time is set to this start time automatically.
Reimplemented from KDGanttViewItem. Definition at line 171 of file KDGanttViewTaskItem.cpp. |
The documentation for this class was generated from the following files: