1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +00:00
OpenMW/apps/opencs/model/prefs/coloursetting.hpp
2022-10-31 21:04:01 +01:00

49 lines
882 B
C++

#ifndef CSM_PREFS_COLOURSETTING_H
#define CSM_PREFS_COLOURSETTING_H
#include "setting.hpp"
#include <QColor>
#include <string>
#include <utility>
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<QWidget*, QWidget*> makeWidgets(QWidget* parent) override;
void updateWidget() override;
private slots:
void valueChanged();
};
}
#endif