10 Palette(const QColor
&color
= Qt::blue
, qreal shift
= 0.62);
12 QColor
color() const {return QColor::fromHsvF(_h
, _s
, _v
, _a
).toRgb();}
13 qreal
shift() const {return _shift
;}
14 void setColor(const QColor
&color
);
15 void setShift(qreal shift
);
20 bool operator==(const Palette
&other
) const
21 {return (_h
== other
._h
&& _s
== other
._s
&& _v
== other
._v
22 && _a
== other
._a
&& _shift
== other
._shift
);}
23 bool operator!=(const Palette
&other
) const
24 {return !(*this == other
);}
27 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
28 qreal _h
, _s
, _v
, _a
, _shift
;
31 float _h
, _s
, _v
, _a
, _shift
;
37 QDebug
operator<<(QDebug dbg
, const Palette
&palette
);