23 #ifndef KDGANTTITEMDELEGATE_H 24 #define KDGANTTITEMDELEGATE_H 26 #include <QItemDelegate> 34 class StyleOptionGanttItem;
51 void setDefaultBrush(
ItemType type,
const QBrush& brush );
52 QBrush defaultBrush(
ItemType type )
const;
54 void setDefaultPen(
ItemType type,
const QPen& pen );
55 QPen defaultPen(
ItemType type )
const;
58 virtual QRectF constraintBoundingRect(
const QPointF& start,
const QPointF& end,
const Constraint &constraint )
const;
61 const QModelIndex& idx )
const;
63 virtual void paintGanttItem( QPainter* p,
const StyleOptionGanttItem& opt,
const QModelIndex& idx );
64 virtual void paintConstraintItem( QPainter* p,
const QStyleOptionGraphicsItem& opt,
65 const QPointF& start,
const QPointF& end,
const Constraint &constraint );
67 virtual QString toolTip(
const QModelIndex &idx )
const;
70 void paintFinishStartConstraint( QPainter* p,
const QStyleOptionGraphicsItem& opt,
71 const QPointF& start,
const QPointF& end,
const Constraint &constraint );
72 QPolygonF finishStartLine(
const QPointF& start,
const QPointF& end )
const;
73 QPolygonF finishStartArrow(
const QPointF& start,
const QPointF& end )
const;
75 void paintFinishFinishConstraint( QPainter* p,
const QStyleOptionGraphicsItem& opt,
76 const QPointF& start,
const QPointF& end,
const Constraint &constraint );
77 QPolygonF finishFinishLine(
const QPointF& start,
const QPointF& end )
const;
78 QPolygonF finishFinishArrow(
const QPointF& start,
const QPointF& end )
const;
80 void paintStartStartConstraint( QPainter* p,
const QStyleOptionGraphicsItem& opt,
81 const QPointF& start,
const QPointF& end,
const Constraint &constraint );
82 QPolygonF startStartLine(
const QPointF& start,
const QPointF& end )
const;
83 QPolygonF startStartArrow(
const QPointF& start,
const QPointF& end )
const;
85 void paintStartFinishConstraint( QPainter* p,
const QStyleOptionGraphicsItem& opt,
86 const QPointF& start,
const QPointF& end,
const Constraint &constraint );
87 QPolygonF startFinishLine(
const QPointF& start,
const QPointF& end )
const;
88 QPolygonF startFinishArrow(
const QPointF& start,
const QPointF& end )
const;
94 #ifndef QT_NO_DEBUG_STREAM #define KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
A class used to represent a dependency.
Class used to render gantt items in a KDGantt::GraphicsView.
A class representing a start point and a length.
QDebug operator<<(QDebug dbg, KDGantt::ItemDelegate::InteractionState)
QStyleOption subclass for gantt items.
Class only listed here to document inheritance of some KDChart classes.