mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 05:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			703 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			703 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef CSM_PREFS_BOOLSETTING_H
 | 
						|
#define CSM_PREFS_BOOLSETTING_H
 | 
						|
 | 
						|
#include "setting.hpp"
 | 
						|
 | 
						|
namespace CSMPrefs
 | 
						|
{
 | 
						|
    class BoolSetting : public Setting
 | 
						|
    {
 | 
						|
            Q_OBJECT
 | 
						|
 | 
						|
            std::string mTooltip;
 | 
						|
            bool mDefault;
 | 
						|
 | 
						|
        public:
 | 
						|
 | 
						|
            BoolSetting (Category *parent, Settings::Manager *values,
 | 
						|
                QMutex *mutex, const std::string& key, const std::string& label, bool default_);
 | 
						|
 | 
						|
            BoolSetting& setTooltip (const std::string& tooltip);
 | 
						|
 | 
						|
            /// Return label, input widget.
 | 
						|
            virtual std::pair<QWidget *, QWidget *> makeWidgets (QWidget *parent);
 | 
						|
 | 
						|
        private slots:
 | 
						|
 | 
						|
            void valueChanged (int value);
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |