mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 13:26:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			525 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			525 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef COMBOBOX_HPP
 | 
						|
#define COMBOBOX_HPP
 | 
						|
 | 
						|
#include <QComboBox>
 | 
						|
 | 
						|
class QString;
 | 
						|
class QRegularExpressionValidator;
 | 
						|
 | 
						|
namespace ContentSelectorView
 | 
						|
{
 | 
						|
    class ComboBox : public QComboBox
 | 
						|
    {
 | 
						|
        Q_OBJECT
 | 
						|
 | 
						|
    public:
 | 
						|
        explicit ComboBox(QWidget* parent = nullptr);
 | 
						|
 | 
						|
        void setPlaceholderText(const QString& text);
 | 
						|
 | 
						|
    private:
 | 
						|
        QString mPlaceholderText;
 | 
						|
 | 
						|
    protected:
 | 
						|
        void paintEvent(QPaintEvent*) override;
 | 
						|
        QRegularExpressionValidator* mValidator;
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif // COMBOBOX_HPP
 |