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