48 #include <QGraphicsPixmapItem> 49 #include <QGraphicsLayoutItem> 63 class Trash :
public QObject,
public QGraphicsPixmapItem,
public QGraphicsLayoutItem
66 Q_INTERFACES(QGraphicsLayoutItem)
87 virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *_event);
88 virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event);
91 virtual void mousePressEvent (QGraphicsSceneMouseEvent *_event);
94 virtual QSizeF sizeHint ( Qt::SizeHint _which,
const QSizeF & _constraint = QSizeF())
const;
void deactivate()
Makes the trash transparent (will be called of an element is moved away from this widget) ...
void activate()
Makes the trash opaque (will be called of an element is moved above this widget)
virtual void setGeometry(const QRectF &_rect)
Sets the geometry.
Trash(GraphicsScene *_scene, QGraphicsItem *_parent)
Constructor.