37 #if QT_VERSION < 0x050000 41 setPos( QPointF( 0., 0. ) );
42 setAcceptsHoverEvents(
false );
43 setAcceptedMouseButtons( Qt::NoButton );
51 scene->addItem(
this );
52 setPos( QPointF( 0., 0. ) );
53 setAcceptHoverEvents(
false );
54 setAcceptedMouseButtons( Qt::NoButton );
70 return qobject_cast<
GraphicsScene*>( QGraphicsItem::scene() );
95 return m_constraint.
data( Qt::ToolTipRole ).toString();
100 prepareGeometryChange();
107 prepareGeometryChange();
~ConstraintGraphicsItem() override
QAbstractProxyModel * summaryHandlingModel() const
void setEnd(const QPointF &end)
QRectF boundingRect() const override
QVariant data(int role) const
A class used to represent a dependency.
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override
Constraint proxyConstraint() const
virtual QRectF constraintBoundingRect(const QPointF &start, const QPointF &end, const Constraint &constraint) const
QString ganttToolTip() const
ConstraintGraphicsItem(const Constraint &c, QGraphicsItem *parent=0, GraphicsScene *scene=0)
RelationType relationType() const
void setStart(const QPointF &start)
virtual void paintConstraintItem(QPainter *p, const QStyleOptionGraphicsItem &opt, const QPointF &start, const QPointF &end, const Constraint &constraint)
void updateItem(const QPointF &start, const QPointF &end)
QModelIndex endIndex() const
ItemDelegate * itemDelegate() const
QMap< int, QVariant > dataMap() const
int type() const override
QModelIndex startIndex() const
GraphicsScene * scene() const