mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 01:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			680 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			680 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef PROFILESCOMBOBOX_HPP
 | 
						|
#define PROFILESCOMBOBOX_HPP
 | 
						|
 | 
						|
#include <QComboBox>
 | 
						|
 | 
						|
class QString;
 | 
						|
class QRegExpValidator;
 | 
						|
 | 
						|
class ProfilesComboBox : public QComboBox
 | 
						|
{
 | 
						|
    Q_OBJECT
 | 
						|
public:
 | 
						|
    explicit ProfilesComboBox(QWidget *parent = 0);
 | 
						|
    void setEditEnabled(bool editable);
 | 
						|
    
 | 
						|
signals:
 | 
						|
    void profileChanged(const QString &previous, const QString ¤t);
 | 
						|
    void profileRenamed(const QString &oldName, const QString &newName);
 | 
						|
    
 | 
						|
private slots:
 | 
						|
    void slotEditingFinished();
 | 
						|
    void slotIndexChanged(int index);
 | 
						|
    void slotTextChanged(const QString &text);
 | 
						|
 | 
						|
private:
 | 
						|
    QString mOldProfile;
 | 
						|
    QRegExpValidator *mValidator;
 | 
						|
};
 | 
						|
 | 
						|
#endif // PROFILESCOMBOBOX_HPP
 |