25 #ifndef DIGIKAM_DGRADIENT_SLIDER_H
26 #define DIGIKAM_DGRADIENT_SLIDER_H
49 void showMiddleCursor(
bool b);
50 double leftValue()
const;
51 double rightValue()
const;
52 double middleValue()
const;
53 int gradientOffset()
const;
55 void setColors(
const QColor& lcolor,
56 const QColor& rcolor);
60 void setLeftValue(
double);
61 void setRightValue(
double);
62 void setMiddleValue(
double);
72 void paintEvent(QPaintEvent*)
override;
73 void mousePressEvent(QMouseEvent*)
override;
74 void mouseReleaseEvent(QMouseEvent*)
override;
75 void mouseMoveEvent(QMouseEvent*)
override;
76 void leaveEvent(QEvent*)
override;
80 void adjustMiddleValue(
double newLeftValue,
81 double newRightValue);
82 inline void drawCursorAt(QPainter& painter,
84 const QColor& brushColor,
Definition: dgradientslider.h:41
void leftValueChanged(double)
void rightValueChanged(double)
void middleValueChanged(double)
Definition: datefolderview.cpp:43