62 bool spotVisible =
true,
63 int guideMode = PickColorMode,
64 const QColor& guideColor = Qt::red,
71 QImage getMask()
const;
72 QPoint getSpotPosition()
const;
73 DColor getSpotColor(
int getColorFrom)
const;
74 int previewMode()
const;
76 void setSpotVisible(
bool spotVisible,
bool blink =
false);
77 void setSpotVisibleNoUpdate(
bool spotVisible);
78 void resetSpotPosition();
80 void setPoints(
const QPolygon& p,
bool drawLine =
false);
83 void setPaintColor(
const QColor& color);
84 void setEraseMode(
bool erase);
85 void setMaskEnabled(
bool enabled);
86 void setMaskPenSize(
int size);
89 void setBackgroundColor(
const QColor&);
90 void ICCSettingsChanged();
91 void exposureSettingsChanged();
95 void slotChangeGuideColor(
const QColor& color);
96 void slotChangeGuideSize(
int size);
97 void slotPreviewModeChanged(
int mode);
107 void paintEvent(QPaintEvent*)
override;
108 void resizeEvent(QResizeEvent*)
override;
109 void timerEvent(QTimerEvent*)
override;
110 void mousePressEvent(QMouseEvent*)
override;
111 void mouseReleaseEvent(QMouseEvent*)
override;
112 void mouseMoveEvent(QMouseEvent*)
override;
114#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
116 void enterEvent(QEnterEvent*)
override;
120 void enterEvent(QEvent*)
override;
124 void leaveEvent(QEvent*)
override;
126 void drawLineTo(
const QPoint& endPoint);
127 void drawLineTo(
int width,
bool erase,
131 QPoint translatePointPosition(
const QPoint& point)
const;
132 void drawText(QPainter*
const p,
const QPoint& corner,
const QString& text);
133 void updateMaskCursor();
134 void setSpotPosition(
const QPoint& point);
135 void updateSpotPosition(
int x,
int y);
136 QPoint translateItemPosition(
const QPoint& point,
bool src)
const;
141 Private*
const d =
nullptr;