31 #include <QGraphicsRectItem> 32 #include <QGraphicsTextItem> 34 #include <QtGui/QBrush> 38 class RectItem :
public QObject,
public QGraphicsRectItem
43 RectItem(
int id,
const QRectF &rect, QGraphicsItem * parent = 0);
virtual void focusOutEvent(QFocusEvent *event)
void setColor(const QColor &color)
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
virtual void focusInEvent(QFocusEvent *event)
QGraphicsRectItem * placeHolder_
RectItem(int id, const QRectF &rect, QGraphicsItem *parent=0)
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event)