2013-10-23 02:52:35 +00:00
|
|
|
#ifndef COMBOBOX_HPP
|
|
|
|
#define COMBOBOX_HPP
|
|
|
|
|
|
|
|
#include <QComboBox>
|
|
|
|
|
|
|
|
class QString;
|
|
|
|
class QRegExpValidator;
|
|
|
|
|
|
|
|
namespace ContentSelectorView
|
|
|
|
{
|
|
|
|
class ComboBox : public QComboBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-11-13 07:39:47 +00:00
|
|
|
explicit ComboBox(QWidget* parent = nullptr);
|
2013-10-23 02:52:35 +00:00
|
|
|
|
|
|
|
void setPlaceholderText(const QString& text);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString mPlaceholderText;
|
|
|
|
|
|
|
|
protected:
|
2020-10-16 18:18:54 +00:00
|
|
|
void paintEvent(QPaintEvent*) override;
|
2013-10-23 02:52:35 +00:00
|
|
|
QRegExpValidator* mValidator;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // COMBOBOX_HPP
|