21#include <QGraphicsView>
22#include <QGraphicsPixmapItem>
63 void setMaxRight(qreal maxRight);
64 void setMaxBottom(qreal maxBottom);
66 Intersects intersects(QPointF& point);
68 void saveZoom(qreal zoom);
70 void setRect(
const QRectF& rect);
72 QPointF fixTranslation(QPointF dp)
const;
78 QRectF boundingRect()
const override;
79 void paint(QPainter* painter,
80 const QStyleOptionGraphicsItem* option,
81 QWidget* widget)
override;
90 Private*
const d =
nullptr;
106 bool load(
const QUrl& file)
const;
107 bool setImage(
const QImage& img)
const;
108 void enableSelectionArea(
bool b);
115 void setSelectionArea(
const QRectF& rectangle);
116 QRectF getSelectionArea()
const;
128 void slotSetTLX(
float ratio);
129 void slotSetTLY(
float ratio);
130 void slotSetBRX(
float ratio);
131 void slotSetBRY(
float ratio);
143 void slotSetSelection(
float tl_x,
float tl_y,
float br_x,
float br_y);
144 void slotClearActiveSelection();
154 void slotSetHighlightArea(
float tl_x,
float tl_y,
float br_x,
float br_y);
162 void slotSetHighlightShown(
int percentage,
const QColor& highLightColor = Qt::white);
167 void slotClearHighlight();
171 void wheelEvent(QWheelEvent*)
override;
172 void mousePressEvent(QMouseEvent*)
override;
173 void mouseReleaseEvent(QMouseEvent*)
override;
174 void mouseMoveEvent(QMouseEvent*)
override;
175 void leaveEvent(QEvent*)
override;
176 bool eventFilter(QObject*, QEvent*)
override;
177 void resizeEvent(QResizeEvent*)
override;
179#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
181 void enterEvent(QEnterEvent*)
override;
185 void enterEvent(QEvent*)
override;
189 void updateSelVisibility();
190 void updateHighlight();
195 Private*
const d =
nullptr;
Definition dpreviewimage.h:96
Definition dpreviewimage.h:39
@ Top
Definition dpreviewimage.h:45
@ None
Definition dpreviewimage.h:44
@ TopLeft
Definition dpreviewimage.h:52
@ TopRight
Definition dpreviewimage.h:46
@ BottomRight
Definition dpreviewimage.h:48
@ BottomLeft
Definition dpreviewimage.h:50
@ Right
Definition dpreviewimage.h:47
@ Bottom
Definition dpreviewimage.h:49
@ Left
Definition dpreviewimage.h:51
Definition datefolderview.cpp:34