KD Chart 2  [rev.2.7]
Public Types | Public Member Functions | List of all members
KDGantt::ConstraintGraphicsItem Class Reference

#include <kdganttconstraintgraphicsitem.h>

Inheritance diagram for KDGantt::ConstraintGraphicsItem:
Inheritance graph
[legend]
Collaboration diagram for KDGantt::ConstraintGraphicsItem:
Collaboration graph
[legend]

Public Types

enum  { Type = UserType + 43 }
 

Public Member Functions

QRectF boundingRect () const override
 
const Constraintconstraint () 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
 
GraphicsScenescene () 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
 

Detailed Description

Definition at line 33 of file kdganttconstraintgraphicsitem.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Type 

Definition at line 35 of file kdganttconstraintgraphicsitem.h.

Constructor & Destructor Documentation

ConstraintGraphicsItem::ConstraintGraphicsItem ( const Constraint c,
QGraphicsItem parent = 0,
GraphicsScene scene = 0 
)
explicit

Definition at line 38 of file kdganttconstraintgraphicsitem.cpp.

References scene().

ConstraintGraphicsItem::~ConstraintGraphicsItem ( )
override

Definition at line 59 of file kdganttconstraintgraphicsitem.cpp.

Member Function Documentation

QRectF ConstraintGraphicsItem::boundingRect ( ) const
override
const Constraint& KDGantt::ConstraintGraphicsItem::constraint ( ) const
QPointF KDGantt::ConstraintGraphicsItem::end ( ) const

Definition at line 56 of file kdganttconstraintgraphicsitem.h.

Referenced by setEnd().

QString ConstraintGraphicsItem::ganttToolTip ( ) const
void ConstraintGraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget widget = 0 
)
override
Constraint ConstraintGraphicsItem::proxyConstraint ( ) const
GraphicsScene * ConstraintGraphicsItem::scene ( ) const
void ConstraintGraphicsItem::setEnd ( const QPointF &  end)
void ConstraintGraphicsItem::setStart ( const QPointF &  start)
QPointF KDGantt::ConstraintGraphicsItem::start ( ) const

Definition at line 54 of file kdganttconstraintgraphicsitem.h.

Referenced by setStart().

int ConstraintGraphicsItem::type ( ) const
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().


The documentation for this class was generated from the following files:

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/

https://www.kdab.com/development-resources/qt-tools/kd-chart/