41 #include <QGraphicsPixmapItem>
42 #include <QLinearGradient>
48 class QGraphicsSceneMouseEvent;
50 class QGraphicsSceneContextMenuEvent;
52 class QStyleOptionGraphicsItem;
73 enum { Type = UserType + 15 };
78 void removeArrow(
Arrow *arrow);
83 QPolygonF polygon()
const {
return m_qPolygon; }
84 void addArrow(
Arrow *arrow);
85 QPixmap image()
const;
87 int type()
const {
return Type;}
89 void paint(QPainter * painter,
const QStyleOptionGraphicsItem * option, QWidget * widget = 0);
92 void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
93 QVariant itemChange(GraphicsItemChange change,
const QVariant &value);
100 QPolygonF m_qPolygon;
102 QLinearGradient m_qLinearGradientFace;
103 QColor m_qColorContour;
105 QMenu *m_contextMenu;
106 QList<Arrow *> arrows;
111 #endif // PLUGINITEM_H
Contains declaration of IPlugin interface class.
QSharedPointer< IPlugin > SPtr