25 #ifndef DIGIKAM_GRAPHICS_DIMG_ITEM_H
26 #define DIGIKAM_GRAPHICS_DIMG_ITEM_H
31 #include <QGraphicsObject>
42 class ImageZoomSettings;
44 class DIGIKAM_EXPORT GraphicsDImgItem :
public QGraphicsObject
50 explicit GraphicsDImgItem(QGraphicsItem*
const parent =
nullptr);
51 ~GraphicsDImgItem()
override;
57 void setImage(
const DImg& img);
63 void sizeHasChanged();
66 QRectF boundingRect()
const override;
67 void paint(QPainter* painter,
68 const QStyleOptionGraphicsItem* option,
69 QWidget* widget =
nullptr)
override;
84 void contextMenuEvent(QGraphicsSceneContextMenuEvent* e)
override;
89 class GraphicsDImgItemPrivate;
94 GraphicsDImgItemPrivate*
const d_ptr;
Definition: dimgitems_p.h:75
ImageZoomSettings * zoomSettings()
const ImageZoomSettings * zoomSettings() const
void imageSizeChanged(const QSizeF &size)
virtual QString userLoadingHint() const
Definition: graphicsdimgitem.h:71
GraphicsDImgItemPrivate *const d_ptr
Definition: graphicsdimgitem.h:94
void showContextMenu(QGraphicsSceneContextMenuEvent *e)
Definition: imagezoomsettings.h:41
Definition: datefolderview.cpp:43