![]() |
KD Chart API Documentation
3.1
|
QStyleOption subclass for gantt items. More...
#include <KDGanttStyleOptionGanttItem>
Public Types | |
enum | Position { Left , Right , Center , Hidden } |
This enum is used to describe where the Qt::DisplayRole (the label) should be located relative to the item itself. More... | |
Public Member Functions | |
StyleOptionGanttItem () | |
Constructor. More... | |
StyleOptionGanttItem (const StyleOptionGanttItem &other) | |
Copy constructor. More... | |
StyleOptionGanttItem & | operator= (const StyleOptionGanttItem &other) |
Assignment operator. More... | |
Public Attributes | |
QRectF | boundingRect |
Contains the bounding rectangle for the item. More... | |
Position | displayPosition = Left |
AbstractGrid * | grid = nullptr |
Contains a pointer to the AbstractGrid used by the view. More... | |
QRectF | itemRect |
Contains the "active" item rectangle that corresponds to the values from the model. More... | |
QString | text |
Contains a string printed to the item. More... | |
QStyleOption subclass for gantt items.
Definition at line 22 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 25 of file kdganttstyleoptionganttitem.h.
StyleOptionGanttItem::StyleOptionGanttItem | ( | ) |
StyleOptionGanttItem::StyleOptionGanttItem | ( | const StyleOptionGanttItem & | other | ) |
Copy constructor.
Creates a copy of other
Definition at line 31 of file kdganttstyleoptionganttitem.cpp.
References operator=().
StyleOptionGanttItem & StyleOptionGanttItem::operator= | ( | const StyleOptionGanttItem & | other | ) |
Assignment operator.
Definition at line 38 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 37 of file kdganttstyleoptionganttitem.h.
Referenced by KDGantt::Legend::drawItem(), operator<<(), operator=(), and KDGantt::ItemDelegate::paintGanttItem().
StyleOptionGanttItem::displayPosition = Left |
Definition at line 39 of file kdganttstyleoptionganttitem.h.
Referenced by KDGantt::Legend::getStyleOption(), KDGantt::ItemDelegate::itemBoundingSpan(), operator<<(), operator=(), and KDGantt::ItemDelegate::paintGanttItem().
StyleOptionGanttItem::grid = nullptr |
Contains a pointer to the AbstractGrid used by the view.
Definition at line 40 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 38 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 41 of file kdganttstyleoptionganttitem.h.
Referenced by KDGantt::Legend::drawItem(), KDGantt::Legend::getStyleOption(), operator<<(), operator=(), and KDGantt::ItemDelegate::paintGanttItem().