KDGantt::ConstraintGraphicsItem Class Reference

#include <kdganttconstraintgraphicsitem.h>

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

List of all members.

Public Types

enum  { Type = UserType + 43 }

Public Member Functions

QRectF boundingRect () const
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)
Constraint proxyConstraint () const
GraphicsScenescene () 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 ()

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.

ConstraintGraphicsItem::~ConstraintGraphicsItem (  )  [virtual]

Definition at line 47 of file kdganttconstraintgraphicsitem.cpp.


Member Function Documentation

QRectF ConstraintGraphicsItem::boundingRect (  )  const
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
void ConstraintGraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget widget = 0 
)
Constraint ConstraintGraphicsItem::proxyConstraint (  )  const
GraphicsScene * ConstraintGraphicsItem::scene (  )  const

Definition at line 56 of file kdganttconstraintgraphicsitem.cpp.

Referenced by boundingRect(), paint(), and proxyConstraint().

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.

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-chart/