![]() |
KD Chart 2
[rev.2.8]
|
#include <kdganttconstraintgraphicsitem.h>


Public Types | |
| enum | { Type = UserType + 43 } |
Public Member Functions | |
| QRectF | boundingRect () const override |
| const Constraint & | constraint () const |
| ConstraintGraphicsItem (const Constraint &c, QGraphicsItem *parent=0, GraphicsScene *scene=0) | |
| QPointF | end () const |
| QString | ganttToolTip () const |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) 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) |
| ~ConstraintGraphicsItem () override | |
Definition at line 33 of file kdganttconstraintgraphicsitem.h.
| anonymous enum |
| Enumerator | |
|---|---|
| Type | |
Definition at line 35 of file kdganttconstraintgraphicsitem.h.
|
explicit |
Definition at line 37 of file kdganttconstraintgraphicsitem.cpp.
References scene().
|
override |
Definition at line 48 of file kdganttconstraintgraphicsitem.cpp.
|
override |
Definition at line 69 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::ItemDelegate::constraintBoundingRect(), KDGantt::GraphicsScene::itemDelegate(), and scene().
| const Constraint& KDGantt::ConstraintGraphicsItem::constraint | ( | ) | const |
Definition at line 50 of file kdganttconstraintgraphicsitem.h.
| QPointF KDGantt::ConstraintGraphicsItem::end | ( | ) | const |
Definition at line 56 of file kdganttconstraintgraphicsitem.h.
Referenced by setEnd(), and updateItem().
| QString ConstraintGraphicsItem::ganttToolTip | ( | ) | const |
Definition at line 82 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::Constraint::data().
Referenced by KDGantt::GraphicsScene::helpEvent().
|
override |
Definition at line 74 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::GraphicsScene::itemDelegate(), KDGantt::ItemDelegate::paintConstraintItem(), and scene().
| Constraint ConstraintGraphicsItem::proxyConstraint | ( | ) | const |
Definition at line 62 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 57 of file kdganttconstraintgraphicsitem.cpp.
Referenced by boundingRect(), ConstraintGraphicsItem(), paint(), and proxyConstraint().
| void ConstraintGraphicsItem::setEnd | ( | const QPointF & | end | ) |
Definition at line 94 of file kdganttconstraintgraphicsitem.cpp.
References end().
Referenced by KDGantt::GraphicsItem::addEndConstraint(), and updateItem().
| void ConstraintGraphicsItem::setStart | ( | const QPointF & | start | ) |
Definition at line 87 of file kdganttconstraintgraphicsitem.cpp.
References start().
Referenced by KDGantt::GraphicsItem::addStartConstraint(), and updateItem().
| QPointF KDGantt::ConstraintGraphicsItem::start | ( | ) | const |
Definition at line 54 of file kdganttconstraintgraphicsitem.h.
Referenced by setStart(), and updateItem().
|
override |
Definition at line 52 of file kdganttconstraintgraphicsitem.cpp.
References Type.
| void ConstraintGraphicsItem::updateItem | ( | const QPointF & | start, |
| const QPointF & | end | ||
| ) |
Definition at line 101 of file kdganttconstraintgraphicsitem.cpp.
References end(), setEnd(), setStart(), and start().