![]() |
KD Chart 2
[rev.2.8]
|
QStyleOption subclass for gantt items. More...
#include <KDGanttStyleOptionGanttItem>


Public Types | |
| enum | Position { Left, Right, Center, Hidden } |
Public Member Functions | |
| StyleOptionGanttItem & | operator= (const StyleOptionGanttItem &other) |
| StyleOptionGanttItem () | |
| StyleOptionGanttItem (const StyleOptionGanttItem &other) | |
Public Attributes | |
| QRectF | boundingRect |
| Position | displayPosition |
| AbstractGrid * | grid |
| QRectF | itemRect |
| QString | text |
QStyleOption subclass for gantt items.
Definition at line 34 of file kdganttstyleoptionganttitem.h.
This enum is used to describe where the Qt::DisplayRole (the label) should be located relative to the item itself.
| Enumerator | |
|---|---|
| Left | |
| Right | |
| Center | |
| Hidden | |
Definition at line 36 of file kdganttstyleoptionganttitem.h.
| StyleOptionGanttItem::StyleOptionGanttItem | ( | ) |
Constructor. Sets grid to 0.
Definition at line 35 of file kdganttstyleoptionganttitem.cpp.
| StyleOptionGanttItem::StyleOptionGanttItem | ( | const StyleOptionGanttItem & | other | ) |
Copy constructor. Creates a copy of other
Definition at line 45 of file kdganttstyleoptionganttitem.cpp.
References operator=().
| StyleOptionGanttItem & StyleOptionGanttItem::operator= | ( | const StyleOptionGanttItem & | other | ) |
Assignment operator
Definition at line 52 of file kdganttstyleoptionganttitem.cpp.
References boundingRect, displayPosition, grid, itemRect, and text.
Referenced by StyleOptionGanttItem().
| StyleOptionGanttItem::boundingRect |
Contains the bounding rectangle for the item
Definition at line 42 of file kdganttstyleoptionganttitem.h.
Referenced by KDGantt::Legend::drawItem(), operator<<(), operator=(), and KDGantt::ItemDelegate::paintGanttItem().
| StyleOptionGanttItem::displayPosition |
Definition at line 44 of file kdganttstyleoptionganttitem.h.
Referenced by KDGantt::Legend::getStyleOption(), KDGantt::ItemDelegate::itemBoundingSpan(), operator<<(), operator=(), and KDGantt::ItemDelegate::paintGanttItem().
| StyleOptionGanttItem::grid |
Contains a pointer to the AbstractGrid used by the view
Definition at line 45 of file kdganttstyleoptionganttitem.h.
Referenced by operator<<(), and operator=().
| StyleOptionGanttItem::itemRect |
Contains the "active" item rectangle that corresponds to the values from the model.
Definition at line 43 of file kdganttstyleoptionganttitem.h.
Referenced by KDGantt::Legend::drawItem(), KDGantt::ItemDelegate::interactionStateFor(), KDGantt::ItemDelegate::itemBoundingSpan(), operator<<(), operator=(), and KDGantt::ItemDelegate::paintGanttItem().
| StyleOptionGanttItem::text |
Contains a string printed to the item
Definition at line 46 of file kdganttstyleoptionganttitem.h.
Referenced by KDGantt::Legend::drawItem(), KDGantt::Legend::getStyleOption(), operator<<(), operator=(), and KDGantt::ItemDelegate::paintGanttItem().