1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 20:23:54 +00:00
openmw/apps/opencs/model/prefs/coloursetting.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
882 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>
2022-10-19 17:02:00 +00:00
#include <string>
#include <utility>
class QMutex;
class QObject;
class QWidget;
namespace CSVWidget
{
class ColorEditor;
}
2015-12-11 10:15:14 +00:00
namespace CSMPrefs
{
2022-10-19 17:02:00 +00:00
class Category;
2015-12-11 10:15:14 +00:00
class ColourSetting : public Setting
{
Q_OBJECT
std::string mTooltip;
QColor mDefault;
CSVWidget::ColorEditor* mWidget;
2015-12-11 10:15:14 +00:00
public:
ColourSetting(
2015-12-15 11:19:48 +00:00
Category* parent, QMutex* mutex, const std::string& key, const std::string& label, QColor default_);
2015-12-11 10:15:14 +00:00
2015-12-15 11:19:48 +00:00
ColourSetting& setTooltip(const std::string& tooltip);
2015-12-11 10:15:14 +00:00
/// Return label, input widget.
std::pair<QWidget*, QWidget*> makeWidgets(QWidget* parent) override;
void updateWidget() override;
2015-12-11 10:15:14 +00:00
private slots:
2015-12-11 10:15:14 +00:00
void valueChanged();
};
}
#endif