25 #ifndef DIGIKAM_DCOLOR_VALUE_SELECTOR_H
26 #define DIGIKAM_DCOLOR_VALUE_SELECTOR_H
31 #include <QAbstractSlider>
50 class DIGIKAM_EXPORT
DSelector :
public QAbstractSlider
53 Q_PROPERTY(
int value READ
value WRITE setValue)
54 Q_PROPERTY(
int minValue READ minimum WRITE setMinimum)
55 Q_PROPERTY(
int maxValue READ maximum WRITE setMaximum)
56 Q_PROPERTY(
bool indent READ indent WRITE setIndent)
57 Q_PROPERTY(Qt::ArrowType arrowDirection READ arrowDirection WRITE setArrowDirection)
61 explicit DSelector(QWidget *parent =
nullptr);
68 QRect contentsRect()
const;
74 void setIndent(
bool i);
84 void setArrowDirection(Qt::ArrowType direction);
89 Qt::ArrowType arrowDirection()
const;
105 virtual void drawArrow(QPainter* painter,
const QPoint& pos);
107 void paintEvent(QPaintEvent*)
override;
108 void mousePressEvent(QMouseEvent* e)
override;
109 void mouseMoveEvent(QMouseEvent* e)
override;
110 void mouseReleaseEvent(QMouseEvent* e)
override;
111 void wheelEvent(QWheelEvent*)
override;
115 QPoint calcArrowPos(
int val);
116 void moveArrow(
const QPoint& pos);
121 friend class Private;
132 Q_PROPERTY(
int hue READ hue WRITE setHue)
133 Q_PROPERTY(
int saturation READ saturation WRITE setSaturation)
134 Q_PROPERTY(
int colorValue READ colorValue WRITE setColorValue)
145 void updateContents();
160 void setHue(
int hue);
167 int saturation()
const;
175 void setSaturation(
int saturation);
182 int colorValue()
const;
190 void setColorValue(
int colorValue);
213 virtual void drawPalette(QPixmap*);
214 void resizeEvent(QResizeEvent*)
override;
221 void drawContents(QPainter*)
override;
226 friend class Private;
Definition: dcolorvalueselector.h:130
Definition: dcolorvalueselector.h:51
virtual void drawContents(QPainter *)
Definition: dcolorvalueselector.h:99
qulonglong value
Definition: itemviewutilities.cpp:592
@ Orientation
Definition: coredbfields.h:86
Definition: datefolderview.cpp:43
DColorChooserMode
Definition: dcolorchoosermode.h:32