#ifndef CSM_PREFS_COLOURSETTING_H #define CSM_PREFS_COLOURSETTING_H #include "setting.hpp" #include #include #include class QMutex; class QObject; class QWidget; namespace CSVWidget { class ColorEditor; } namespace CSMPrefs { class Category; class ColourSetting : public Setting { Q_OBJECT std::string mTooltip; QColor mDefault; CSVWidget::ColorEditor* mWidget; public: ColourSetting( Category* parent, QMutex* mutex, const std::string& key, const std::string& label, QColor default_); ColourSetting& setTooltip(const std::string& tooltip); /// Return label, input widget. std::pair makeWidgets(QWidget* parent) override; void updateWidget() override; private slots: void valueChanged(); }; } #endif