mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 22:26:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			742 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			742 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef CSM_PREFS_COLOURSETTING_H
 | |
| #define CSM_PREFS_COLOURSETTING_H
 | |
| 
 | |
| #include "setting.hpp"
 | |
| 
 | |
| #include <QColor>
 | |
| 
 | |
| namespace CSMPrefs
 | |
| {
 | |
|     class ColourSetting : public Setting
 | |
|     {
 | |
|             Q_OBJECT
 | |
| 
 | |
|             std::string mTooltip;
 | |
|             QColor mDefault;
 | |
| 
 | |
|         public:
 | |
| 
 | |
|             ColourSetting (Category *parent, Settings::Manager *values,
 | |
|                 QMutex *mutex, const std::string& key, const std::string& label,
 | |
|                 QColor default_);
 | |
| 
 | |
|             ColourSetting& setTooltip (const std::string& tooltip);
 | |
| 
 | |
|             /// Return label, input widget.
 | |
|             virtual std::pair<QWidget *, QWidget *> makeWidgets (QWidget *parent);
 | |
| 
 | |
|         private slots:
 | |
| 
 | |
|             void valueChanged();
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |