#include <kdganttconstraintgraphicsitem.h>
Public Types | |
enum | { Type = UserType + 43 } |
Public Member Functions | |
QRectF | boundingRect () const |
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) |
Constraint | proxyConstraint () const |
GraphicsScene * | scene () const |
void | setEnd (const QPointF &end) |
void | setStart (const QPointF &start) |
QPointF | start () const |
int | type () const |
void | updateItem (const QPointF &start, const QPointF &end) |
virtual | ~ConstraintGraphicsItem () |
Definition at line 33 of file kdganttconstraintgraphicsitem.h.
anonymous enum |
Definition at line 35 of file kdganttconstraintgraphicsitem.h.
ConstraintGraphicsItem::ConstraintGraphicsItem | ( | const Constraint & | c, | |
QGraphicsItem * | parent = 0 , |
|||
GraphicsScene * | scene = 0 | |||
) | [explicit] |
Definition at line 38 of file kdganttconstraintgraphicsitem.cpp.
ConstraintGraphicsItem::~ConstraintGraphicsItem | ( | ) | [virtual] |
Definition at line 47 of file kdganttconstraintgraphicsitem.cpp.
QRectF ConstraintGraphicsItem::boundingRect | ( | ) | const |
Definition at line 68 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.
QString ConstraintGraphicsItem::ganttToolTip | ( | ) | const |
Definition at line 81 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::Constraint::data().
Referenced by KDGantt::GraphicsScene::helpEvent().
void ConstraintGraphicsItem::paint | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option, | |||
QWidget * | widget = 0 | |||
) |
Definition at line 73 of file kdganttconstraintgraphicsitem.cpp.
References KDGantt::GraphicsScene::itemDelegate(), KDGantt::ItemDelegate::paintConstraintItem(), and scene().
Constraint ConstraintGraphicsItem::proxyConstraint | ( | ) | const |
Definition at line 61 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 56 of file kdganttconstraintgraphicsitem.cpp.
Referenced by boundingRect(), paint(), and proxyConstraint().
void ConstraintGraphicsItem::setEnd | ( | const QPointF & | end | ) |
Definition at line 93 of file kdganttconstraintgraphicsitem.cpp.
Referenced by KDGantt::GraphicsItem::addEndConstraint(), and updateItem().
void ConstraintGraphicsItem::setStart | ( | const QPointF & | start | ) |
Definition at line 86 of file kdganttconstraintgraphicsitem.cpp.
Referenced by KDGantt::GraphicsItem::addStartConstraint(), and updateItem().
QPointF KDGantt::ConstraintGraphicsItem::start | ( | ) | const |
Definition at line 54 of file kdganttconstraintgraphicsitem.h.
int ConstraintGraphicsItem::type | ( | ) | const |
Definition at line 51 of file kdganttconstraintgraphicsitem.cpp.
References Type.
void ConstraintGraphicsItem::updateItem | ( | const QPointF & | start, | |
const QPointF & | end | |||
) |
Definition at line 100 of file kdganttconstraintgraphicsitem.cpp.
References setEnd(), and setStart().