You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
632 B
C++
31 lines
632 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 slotReturnPressed();
|
|
void slotIndexChanged(int index);
|
|
|
|
private:
|
|
QString mOldProfile;
|
|
QRegExpValidator *mValidator;
|
|
};
|
|
|
|
#endif // PROFILESCOMBOBOX_HPP
|