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

Detailed Description
An event item in a Gantt chart.This class represents event items in Gantt charts.
Definition at line 40 of file KDGanttViewEventItem.h.
Public Member Functions | |
KDGanttViewEventItem (KDGanttView *view, const QString &lvtext=QString::null, const QString &name=QString::null) | |
KDGanttViewEventItem (KDGanttViewItem *parent, const QString &lvtext=QString::null, const QString &name=QString::null) | |
KDGanttViewEventItem (KDGanttView *view, KDGanttViewItem *after, const QString &lvtext=QString::null, const QString &name=QString::null) | |
KDGanttViewEventItem (KDGanttViewItem *parent, KDGanttViewItem *after, const QString &lvtext=QString::null, const QString &name=QString::null) | |
virtual | ~KDGanttViewEventItem () |
void | setLeadTime (const QDateTime &leadTimeStart) |
void | setStartTime (const QDateTime &start) |
QDateTime | leadTime () const |
Constructor & Destructor Documentation
KDGanttViewEventItem::KDGanttViewEventItem | ( | 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 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 55 of file KDGanttViewEventItem.cpp.
KDGanttViewEventItem::KDGanttViewEventItem | ( | 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 72 of file KDGanttViewEventItem.cpp.
KDGanttViewEventItem::KDGanttViewEventItem | ( | 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 91 of file KDGanttViewEventItem.cpp.
KDGanttViewEventItem::KDGanttViewEventItem | ( | 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 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 111 of file KDGanttViewEventItem.cpp.
KDGanttViewEventItem::~KDGanttViewEventItem | ( | ) | [virtual] |
The destructor. Nothing done here.
Definition at line 125 of file KDGanttViewEventItem.cpp.
Member Function Documentation
void KDGanttViewEventItem::setLeadTime | ( | const QDateTime & | leadTimeStart | ) |
Specifies whether the event item should be shown with a lead time line, and if yes, when the lead time starts. If the start time is less than the lead time, the start time is set to this lead time automatically.
- Parameters:
-
leadTimeStart the start time of the lead time; pass an invalid QDateTime object in order to turn the lead time off.
- See also:
- leadTime()
Definition at line 167 of file KDGanttViewEventItem.cpp.
void KDGanttViewEventItem::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 less than the lead time, the lead time is set to this start time automatically.
- Parameters:
-
start the start time
- See also:
- startTime()
Reimplemented from KDGanttViewItem.
Definition at line 139 of file KDGanttViewEventItem.cpp.
QDateTime KDGanttViewEventItem::leadTime | ( | ) | const |
Returns whether the event item is shown with a lead time line and if yes, when the lead time starts.
- Returns:
- if the event item is shown with a lead time line, returns the QDateTime object representing the start of the lead time, otherwise returns an invalid QDateTime object
- See also:
- setLeadTime()
Definition at line 189 of file KDGanttViewEventItem.cpp.
The documentation for this class was generated from the following files: