30 autoColorIndex,
const QColor& customColor) :
33 autoColorIndex_(autoColorIndex),
34 customColor_(customColor) {
99 settings.setValue(
"type",
type_);
100 settings.setValue(
"custom_color", QVariant::fromValue<QColor>(
105 setType(static_cast<Type>(settings.value(
"type",
Auto).toInt()));
125 setType(static_cast<Type>(type));
126 stream >> customColor;
CurveColorConfig(QObject *parent=0, Type type=Auto, unsigned char autoColorIndex=0, const QColor &customColor=Qt::black)
const QColor & getCustomColor() const
void customColorChanged(const QColor &color)
void load(QSettings &settings)
void save(QSettings &settings) const
CurveColorConfig & operator=(const CurveColorConfig &src)
unsigned char getAutoColorIndex() const
void write(QDataStream &stream) const
void setAutoColorIndex(unsigned char index)
void typeChanged(int type)
void read(QDataStream &stream)
void currentColorChanged(const QColor &color)
unsigned char autoColorIndex_
static QColor intToRgb(unsigned char val)
void autoColorIndexChanged(unsigned char index)
void setCustomColor(const QColor &color)
QColor getCurrentColor() const