1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-02 17:45:34 +00:00
openmw/apps/opencs/model/prefs/coloursetting.hpp

41 lines
779 B
C++
Raw Normal View History

2015-12-11 10:15:14 +00:00
#ifndef CSM_PREFS_COLOURSETTING_H
#define CSM_PREFS_COLOURSETTING_H
#include "setting.hpp"
#include <QColor>
namespace CSVWidget
{
class ColorEditor;
}
2015-12-11 10:15:14 +00:00
namespace CSMPrefs
{
class ColourSetting : public Setting
{
2022-09-22 18:26:05 +00:00
Q_OBJECT
2015-12-11 10:15:14 +00:00
2022-09-22 18:26:05 +00:00
std::string mTooltip;
QColor mDefault;
CSVWidget::ColorEditor* mWidget;
2015-12-11 10:15:14 +00:00
2022-09-22 18:26:05 +00:00
public:
ColourSetting(
Category* parent, QMutex* mutex, const std::string& key, const std::string& label, QColor default_);
2015-12-11 10:15:14 +00:00
2022-09-22 18:26:05 +00:00
ColourSetting& setTooltip(const std::string& tooltip);
2015-12-11 10:15:14 +00:00
2022-09-22 18:26:05 +00:00
/// Return label, input widget.
std::pair<QWidget*, QWidget*> makeWidgets(QWidget* parent) override;
2015-12-11 10:15:14 +00:00
2022-09-22 18:26:05 +00:00
void updateWidget() override;
2015-12-11 10:15:14 +00:00
2022-09-22 18:26:05 +00:00
private slots:
2022-09-22 18:26:05 +00:00
void valueChanged();
2015-12-11 10:15:14 +00:00
};
}
#endif