1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-18 21:04:24 +02:00

Fixed options/settings handling isses.

This commit is contained in:
2016-12-06 21:02:44 +01:00
parent 4cf027df58
commit 34e48199b2
4 changed files with 56 additions and 23 deletions

View File

@ -2,13 +2,14 @@
#define PALETTE_H
#include <QColor>
#include <QDebug>
class Palette
{
public:
Palette(const QColor &color = Qt::blue, qreal shift = 0.62);
QColor color() const {return QColor::fromHsvF(_h, _s, _v, _a);}
QColor color() const {return QColor::fromHsvF(_h, _s, _v, _a).toRgb();}
qreal shift() const {return _shift;}
void setColor(const QColor &color);
void setShift(qreal shift);
@ -27,4 +28,6 @@ private:
qreal _state;
};
QDebug operator<<(QDebug dbg, const Palette &palette);
#endif // PALLETE_H