5 #include <QGraphicsItem> 14 virtual void paint( QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget ) Q_DECL_OVERRIDE;
17 void setPix2(
const QPixmap &value );
21 void Image(
const QPixmap &,
const QFileInfo & );
24 virtual void mousePressEvent( QGraphicsSceneMouseEvent *event ) Q_DECL_OVERRIDE;
25 virtual void mouseMoveEvent( QGraphicsSceneMouseEvent *event ) Q_DECL_OVERRIDE;
26 virtual void mouseReleaseEvent( QGraphicsSceneMouseEvent *event ) Q_DECL_OVERRIDE;
GraphicsItem(QString name, QPixmap pix, QFileInfo file)
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
void setPix2(const QPixmap &value)
virtual QRectF boundingRect() const Q_DECL_OVERRIDE
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) Q_DECL_OVERRIDE
void Image(const QPixmap &, const QFileInfo &)
QFileInfo fileInfo() const