Public Types | Public Member Functions

KDGantt::ConstraintGraphicsItem Class Reference

#include <kdganttconstraintgraphicsitem.h>

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

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

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.

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

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.

References end().

Referenced by KDGantt::GraphicsItem::addEndConstraint(), and updateItem().

void ConstraintGraphicsItem::setStart ( const QPointF &  start )

Definition at line 86 of file kdganttconstraintgraphicsitem.cpp.

References start().

Referenced by KDGantt::GraphicsItem::addStartConstraint(), and updateItem().

QPointF KDGantt::ConstraintGraphicsItem::start (  ) const

Definition at line 54 of file kdganttconstraintgraphicsitem.h.

Referenced by setStart().

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