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

#include <kdganttgraphicsitem.h>

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

Public Types

enum  { Type = UserType + 42 }
 

Public Member Functions

void addEndConstraint (ConstraintGraphicsItem *)
 
void addStartConstraint (ConstraintGraphicsItem *)
 
QRectF boundingRect () const override
 
QList< ConstraintGraphicsItem * > endConstraints () const
 
virtual QString ganttToolTip () const
 
 GraphicsItem (QGraphicsItem *parent=0, GraphicsScene *scene=0)
 
 GraphicsItem (const QModelIndex &idx, QGraphicsItem *parent=0, GraphicsScene *scene=0)
 
const QPersistentModelIndex & index () const
 
bool isEditable () const
 
bool isUpdating () const
 
QVariant itemChange (GraphicsItemChange, const QVariant &value) override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override
 
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 override
 
void updateItem (const Span &rowgeometry, const QPersistentModelIndex &idx)
 
 ~GraphicsItem () override
 

Protected Member Functions

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

Detailed Description

Definition at line 42 of file kdganttgraphicsitem.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Type 

Definition at line 44 of file kdganttgraphicsitem.h.

Constructor & Destructor Documentation

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

Definition at line 69 of file kdganttgraphicsitem.cpp.

Referenced by GraphicsItem().

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

Definition at line 75 of file kdganttgraphicsitem.cpp.

References GraphicsItem(), and scene().

GraphicsItem::~GraphicsItem ( )
override

Definition at line 101 of file kdganttgraphicsitem.cpp.

Member Function Documentation

void GraphicsItem::addEndConstraint ( ConstraintGraphicsItem item)
void GraphicsItem::addStartConstraint ( ConstraintGraphicsItem item)
QRectF GraphicsItem::boundingRect ( ) const
override
QList<ConstraintGraphicsItem*> KDGantt::GraphicsItem::endConstraints ( ) const
void GraphicsItem::focusInEvent ( QFocusEvent *  event)
overrideprotected
QString GraphicsItem::ganttToolTip ( ) const
virtual
void GraphicsItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  )
overrideprotected

Definition at line 433 of file kdganttgraphicsitem.cpp.

Referenced by endConstraints().

void GraphicsItem::hoverMoveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected
const QPersistentModelIndex& KDGantt::GraphicsItem::index ( ) const
bool GraphicsItem::isEditable ( ) const
bool KDGantt::GraphicsItem::isUpdating ( ) const
QVariant GraphicsItem::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
override
void GraphicsItem::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected
void GraphicsItem::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected
void GraphicsItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected
void GraphicsItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected
void GraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget widget = 0 
)
override
QRectF KDGantt::GraphicsItem::rect ( ) const
void GraphicsItem::removeEndConstraint ( ConstraintGraphicsItem item)
void GraphicsItem::removeStartConstraint ( ConstraintGraphicsItem item)

Definition at line 272 of file kdganttgraphicsitem.cpp.

Referenced by isUpdating().

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

Definition at line 183 of file kdganttgraphicsitem.cpp.

Referenced by boundingRect(), mouseDoubleClickEvent(), rect(), and updateItem().

void GraphicsItem::setIndex ( const QPersistentModelIndex &  idx)
void GraphicsItem::setRect ( const QRectF &  r)

Definition at line 168 of file kdganttgraphicsitem.cpp.

Referenced by mouseDoubleClickEvent(), rect(), and updateItem().

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

Definition at line 76 of file kdganttgraphicsitem.h.

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

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

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/