![]() |
KD Chart API Documentation
3.1
|
#include <kdganttconstraintgraphicsitem.h>
Public Types | |
| enum | { Type = UserType + 43 } |
Public Member Functions | |
| ConstraintGraphicsItem (const Constraint &c, QGraphicsItem *parent=nullptr, GraphicsScene *scene=nullptr) | |
| ~ConstraintGraphicsItem () override | |
| QRectF | boundingRect () const override |
| const Constraint & | constraint () const |
| QPointF | end () const |
| QString | ganttToolTip () const |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override |
| Constraint | proxyConstraint () const |
| GraphicsScene * | scene () const |
| void | setEnd (const QPointF &end) |
| void | setStart (const QPointF &start) |
| QPointF | start () const |
| int | type () const override |
| void | updateItem (const QPointF &start, const QPointF &end) |
Definition at line 21 of file kdganttconstraintgraphicsitem.h.
| anonymous enum |
| Enumerator | |
|---|---|
| Type | |
Definition at line 24 of file kdganttconstraintgraphicsitem.h.
|
explicit |
Definition at line 25 of file kdganttconstraintgraphicsitem.cpp.
References scene().
|
override |
Definition at line 37 of file kdganttconstraintgraphicsitem.cpp.
|
override |
Definition at line 58 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::ItemDelegate::constraintBoundingRect(), KDGantt::GraphicsScene::itemDelegate(), and scene().
|
inline |
Definition at line 42 of file kdganttconstraintgraphicsitem.h.
Referenced by KDGantt::GraphicsItem::addEndConstraint(), and KDGantt::GraphicsItem::addStartConstraint().
|
inline |
Definition at line 54 of file kdganttconstraintgraphicsitem.h.
Referenced by setEnd(), and updateItem().
| QString ConstraintGraphicsItem::ganttToolTip | ( | ) | const |
Definition at line 71 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::Constraint::data().
Referenced by KDGantt::GraphicsScene::helpEvent().
|
override |
Definition at line 63 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::GraphicsScene::itemDelegate(), KDGantt::ItemDelegate::paintConstraintItem(), and scene().
| Constraint ConstraintGraphicsItem::proxyConstraint | ( | ) | const |
Definition at line 51 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::Constraint::dataMap(), KDGantt::Constraint::endIndex(), KDGantt::Constraint::relationType(), scene(), KDGantt::Constraint::startIndex(), and KDGantt::Constraint::type().
| GraphicsScene * ConstraintGraphicsItem::scene | ( | ) | const |
Definition at line 46 of file kdganttconstraintgraphicsitem.cpp.
Referenced by ConstraintGraphicsItem(), boundingRect(), paint(), and proxyConstraint().
| void ConstraintGraphicsItem::setEnd | ( | const QPointF & | end | ) |
Definition at line 83 of file kdganttconstraintgraphicsitem.cpp.
References end().
Referenced by KDGantt::GraphicsItem::addEndConstraint(), and updateItem().
| void ConstraintGraphicsItem::setStart | ( | const QPointF & | start | ) |
Definition at line 76 of file kdganttconstraintgraphicsitem.cpp.
References start().
Referenced by KDGantt::GraphicsItem::addStartConstraint(), and updateItem().
|
inline |
Definition at line 49 of file kdganttconstraintgraphicsitem.h.
Referenced by setStart(), and updateItem().
|
override |
Definition at line 41 of file kdganttconstraintgraphicsitem.cpp.
References Type.
| void ConstraintGraphicsItem::updateItem | ( | const QPointF & | start, |
| const QPointF & | end | ||
| ) |
Definition at line 90 of file kdganttconstraintgraphicsitem.cpp.
References end(), setEnd(), setStart(), and start().