KDGantt::GraphicsItem Class Reference

#include <kdganttgraphicsitem.h>

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

List of all members.

Public Types

enum  { Type = UserType + 42 }

Public Member Functions

void addEndConstraint (ConstraintGraphicsItem *)
void addStartConstraint (ConstraintGraphicsItem *)
QRectF boundingRect () const
QList< ConstraintGraphicsItem * > endConstraints () const
virtual QString ganttToolTip () const
 GraphicsItem (const QModelIndex &idx, QGraphicsItem *parent=0, GraphicsScene *scene=0)
 GraphicsItem (QGraphicsItem *parent=0, GraphicsScene *scene=0)
const QPersistentModelIndex & index () const
bool isEditable () const
bool isUpdating () const
QVariant itemChange (GraphicsItemChange, const QVariant &value)
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
QRectF rect () const
void removeEndConstraint (ConstraintGraphicsItem *)
void removeStartConstraint (ConstraintGraphicsItem *)
GraphicsScenescene () const
void setBoundingRect (const QRectF &r)
void setIndex (const QPersistentModelIndex &idx)
void setRect (const QRectF &r)
QList< ConstraintGraphicsItem * > startConstraints () const
int type () const
void updateItem (const Span &rowgeometry, const QPersistentModelIndex &idx)
virtual ~GraphicsItem ()

Protected Member Functions

void focusInEvent (QFocusEvent *event)
void hoverLeaveEvent (QGraphicsSceneHoverEvent *)
void hoverMoveEvent (QGraphicsSceneHoverEvent *)
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *)
void mouseMoveEvent (QGraphicsSceneMouseEvent *)
void mousePressEvent (QGraphicsSceneMouseEvent *)
void mouseReleaseEvent (QGraphicsSceneMouseEvent *)

Detailed Description

Definition at line 40 of file kdganttgraphicsitem.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
Type 

Definition at line 42 of file kdganttgraphicsitem.h.


Constructor & Destructor Documentation

GraphicsItem::GraphicsItem ( QGraphicsItem parent = 0,
GraphicsScene scene = 0 
) [explicit]

Definition at line 69 of file kdganttgraphicsitem.cpp.

GraphicsItem::GraphicsItem ( const QModelIndex &  idx,
QGraphicsItem parent = 0,
GraphicsScene scene = 0 
) [explicit]

Definition at line 75 of file kdganttgraphicsitem.cpp.

GraphicsItem::~GraphicsItem (  )  [virtual]

Definition at line 82 of file kdganttgraphicsitem.cpp.


Member Function Documentation

void GraphicsItem::addEndConstraint ( ConstraintGraphicsItem item  ) 
void GraphicsItem::addStartConstraint ( ConstraintGraphicsItem item  ) 
QRectF GraphicsItem::boundingRect (  )  const

Definition at line 195 of file kdganttgraphicsitem.cpp.

Referenced by mouseReleaseEvent(), and paint().

QList<ConstraintGraphicsItem*> KDGantt::GraphicsItem::endConstraints (  )  const

Definition at line 75 of file kdganttgraphicsitem.h.

Referenced by KDGantt::GraphicsScene::removeItem().

void GraphicsItem::focusInEvent ( QFocusEvent *  event  )  [protected]
QString GraphicsItem::ganttToolTip (  )  const [virtual]
void GraphicsItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *   )  [protected]

Definition at line 399 of file kdganttgraphicsitem.cpp.

void GraphicsItem::hoverMoveEvent ( QGraphicsSceneHoverEvent *  event  )  [protected]
const QPersistentModelIndex& KDGantt::GraphicsItem::index (  )  const
bool GraphicsItem::isEditable (  )  const
bool KDGantt::GraphicsItem::isUpdating (  )  const

Definition at line 68 of file kdganttgraphicsitem.h.

Referenced by itemChange().

QVariant GraphicsItem::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
void GraphicsItem::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]
void GraphicsItem::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]
void GraphicsItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]
void GraphicsItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]
void GraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget widget = 0 
)
QRectF KDGantt::GraphicsItem::rect (  )  const
void GraphicsItem::removeEndConstraint ( ConstraintGraphicsItem item  ) 

Definition at line 256 of file kdganttgraphicsitem.cpp.

void GraphicsItem::removeStartConstraint ( ConstraintGraphicsItem item  ) 

Definition at line 249 of file kdganttgraphicsitem.cpp.

GraphicsScene * GraphicsItem::scene (  )  const
void GraphicsItem::setBoundingRect ( const QRectF &  r  ) 

Definition at line 160 of file kdganttgraphicsitem.cpp.

Referenced by updateItem().

void GraphicsItem::setIndex ( const QPersistentModelIndex &  idx  ) 

Definition at line 184 of file kdganttgraphicsitem.cpp.

Referenced by updateItem(), and KDGantt::GraphicsScene::updateRow().

void GraphicsItem::setRect ( const QRectF &  r  ) 

Definition at line 145 of file kdganttgraphicsitem.cpp.

Referenced by updateItem().

QList<ConstraintGraphicsItem*> KDGantt::GraphicsItem::startConstraints (  )  const

Definition at line 74 of file kdganttgraphicsitem.h.

Referenced by KDGantt::GraphicsScene::removeItem().

int GraphicsItem::type (  )  const

Definition at line 98 of file kdganttgraphicsitem.cpp.

References Type.

void GraphicsItem::updateItem ( const Span rowgeometry,
const QPersistentModelIndex &  idx 
)

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/