KD Chart 2
[rev.2.7]
|
#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 38 of file kdganttconstraintgraphicsitem.cpp.
References scene().
|
override |
Definition at line 59 of file kdganttconstraintgraphicsitem.cpp.
|
override |
Definition at line 80 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.
Referenced by KDGantt::GraphicsItem::removeEndConstraint().
QPointF KDGantt::ConstraintGraphicsItem::end | ( | ) | const |
Definition at line 56 of file kdganttconstraintgraphicsitem.h.
Referenced by setEnd().
QString ConstraintGraphicsItem::ganttToolTip | ( | ) | const |
Definition at line 93 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::Constraint::data().
Referenced by KDGantt::GraphicsScene::helpEvent().
|
override |
Definition at line 85 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::GraphicsScene::itemDelegate(), KDGantt::ItemDelegate::paintConstraintItem(), and scene().
Constraint ConstraintGraphicsItem::proxyConstraint | ( | ) | const |
Definition at line 73 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::Constraint::dataMap(), KDGantt::Constraint::endIndex(), KDGantt::Constraint::relationType(), scene(), KDGantt::Constraint::startIndex(), KDGantt::GraphicsScene::summaryHandlingModel(), and KDGantt::Constraint::type().
GraphicsScene * ConstraintGraphicsItem::scene | ( | ) | const |
Definition at line 68 of file kdganttconstraintgraphicsitem.cpp.
Referenced by boundingRect(), ConstraintGraphicsItem(), paint(), and proxyConstraint().
void ConstraintGraphicsItem::setEnd | ( | const QPointF & | end | ) |
Definition at line 105 of file kdganttconstraintgraphicsitem.cpp.
References end().
Referenced by KDGantt::GraphicsItem::addEndConstraint(), KDGantt::GraphicsItem::removeEndConstraint(), and updateItem().
void ConstraintGraphicsItem::setStart | ( | const QPointF & | start | ) |
Definition at line 98 of file kdganttconstraintgraphicsitem.cpp.
References start().
Referenced by KDGantt::GraphicsItem::addStartConstraint(), KDGantt::GraphicsItem::removeEndConstraint(), and updateItem().
QPointF KDGantt::ConstraintGraphicsItem::start | ( | ) | const |
Definition at line 54 of file kdganttconstraintgraphicsitem.h.
Referenced by setStart().
|
override |
Definition at line 63 of file kdganttconstraintgraphicsitem.cpp.
References Type.
void ConstraintGraphicsItem::updateItem | ( | const QPointF & | start, |
const QPointF & | end | ||
) |
Definition at line 112 of file kdganttconstraintgraphicsitem.cpp.
References setEnd(), and setStart().