mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 17:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			515 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			515 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef COMBOBOX_HPP
 | |
| #define COMBOBOX_HPP
 | |
| 
 | |
| #include <QComboBox>
 | |
| #include <QStylePainter>
 | |
| 
 | |
| class QString;
 | |
| class QRegExpValidator;
 | |
| 
 | |
| namespace ContentSelectorView
 | |
| {
 | |
|     class ComboBox : public QComboBox
 | |
|     {
 | |
|         Q_OBJECT
 | |
| 
 | |
|     public:
 | |
|         explicit ComboBox (QWidget *parent = 0);
 | |
| 
 | |
|         void setPlaceholderText(const QString &text);
 | |
| 
 | |
|     private:
 | |
|         QString mPlaceholderText;
 | |
| 
 | |
|     protected:
 | |
|         void paintEvent(QPaintEvent *);
 | |
|         QRegExpValidator *mValidator;
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif // COMBOBOX_HPP
 |