47 void init(ColorSpecType specType, ColorType type,
const QColor &color, qreal min, qreal max);
51 QColor color() {
return mColor; }
65 void setColorSpecType(ColorSpecType newType) { this->mSpecType = newType; }
66 void setColorType(ColorType newType) { this->mColorType = newType; }
68 void setMin(qreal min) { mMin = min; }
69 void setMax(qreal max) { mMax = max; }
71 QSize sizeHint()
const override;
79 void valueChanged(
QColor color);
84 void drawPicker(
const QColor &color);
88 void colorPicked(
QPoint point);
96 ColorType mColorType = ColorType::HUE;
97 ColorSpecType mSpecType = ColorSpecType::RGB;
int hsvSaturation() const const
void setHsv(int h, int s, int v, int a)
void setRgb(int r, int g, int b, int a)
QObject * parent() const const