33 #ifndef BASERECTITEM_H
34 #define BASERECTITEM_H
37 #include <QtGui/QGraphicsRectItem>
38 #include <QtGui/QPainter>
72 BaseRectItem (
const QColor &color,
bool actAsButton =
false, QGraphicsItem *parent = 0 );
86 QRectF boundingRect ()
const;
95 virtual void paint ( QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget = 0 ) = 0;
102 QColor getColor ()
const;
111 void hoverEnterEvent ( QGraphicsSceneHoverEvent * event );
118 void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
125 void mousePressEvent ( QGraphicsSceneMouseEvent *event );
132 void mouseReleaseEvent ( QGraphicsSceneMouseEvent *event );