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

#include <kdganttconstraintgraphicsitem.h>

Inheritance diagram for KDGantt::ConstraintGraphicsItem:
Inheritance graph
Collaboration diagram for KDGantt::ConstraintGraphicsItem:
Collaboration graph

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

Definition at line 35 of file kdganttconstraintgraphicsitem.h.

Constructor & Destructor Documentation

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

Definition at line 38 of file kdganttconstraintgraphicsitem.cpp.

References scene().

ConstraintGraphicsItem::~ConstraintGraphicsItem ( )

Definition at line 59 of file kdganttconstraintgraphicsitem.cpp.

Member Function Documentation

QRectF ConstraintGraphicsItem::boundingRect ( ) const
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 
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

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)
Qt-related services and products