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) |
Constructor & Destructor Documentation
KDGanttViewTaskItem::KDGanttViewTaskItem | ( | KDGanttView * | view, | |
const QString & | lvtext = QString::null , |
|||
const QString & | name = QString::null | |||
) |
Constructs an empty Gantt item of type event.
- Parameters:
-
view the Gantt view to insert this item into lvtext the text to show in the listview name the name by which the item can be identified. If no name is specified, a unique name will be generated
Definition at line 69 of file KDGanttViewTaskItem.cpp.
KDGanttViewTaskItem::KDGanttViewTaskItem | ( | KDGanttViewItem * | parent, | |
const QString & | lvtext = QString::null , |
|||
const QString & | name = QString::null | |||
) |
Constructs an empty Gantt item of type event.
- Parameters:
-
parent a parent item under which this one goes lvtext the text to show in the list view name the name by which the item can be identified. If no name is specified, a unique name will be generated
Definition at line 87 of file KDGanttViewTaskItem.cpp.
KDGanttViewTaskItem::KDGanttViewTaskItem | ( | KDGanttView * | view, | |
KDGanttViewItem * | after, | |||
const QString & | lvtext = QString::null , |
|||
const QString & | name = QString::null | |||
) |
Constructs an empty Gantt item of type event.
- Parameters:
-
view the Gantt view to insert this item into after another item at the same level behind which this one should go lvtext the text to show in the list view name the name by which the item can be identified. If no name is specified, a unique name will be generated
Definition at line 105 of file KDGanttViewTaskItem.cpp.
KDGanttViewTaskItem::KDGanttViewTaskItem | ( | KDGanttViewItem * | parent, | |
KDGanttViewItem * | after, | |||
const QString & | lvtext = QString::null , |
|||
const QString & | name = QString::null | |||
) |
Constructs an empty Gantt item of type event.
- Parameters:
-
parent a parent item under which this one goes after another item at the same level behind which this one should go lvtext the text to show in the listview name the name by which the item can be identified. If no name is specified, a unique name will be generated
Definition at line 124 of file KDGanttViewTaskItem.cpp.
KDGanttViewTaskItem::~KDGanttViewTaskItem | ( | ) | [virtual] |
The destructor.
Definition at line 137 of file KDGanttViewTaskItem.cpp.
Member Function Documentation
void KDGanttViewTaskItem::setStartTime | ( | const QDateTime & | start | ) | [virtual] |
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.
- Parameters:
-
start the start time
- See also:
- startTime(), setEndTime(), endTime()
Reimplemented from KDGanttViewItem.
Definition at line 171 of file KDGanttViewTaskItem.cpp.
void KDGanttViewTaskItem::setEndTime | ( | const QDateTime & | end | ) | [virtual] |
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.
- Parameters:
-
end the end time
- See also:
- setStartTime(), startTime(), endTime()
Reimplemented from KDGanttViewItem.
Definition at line 152 of file KDGanttViewTaskItem.cpp.
The documentation for this class was generated from the following files: