2013-10-22 21:52:35 -05: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 11:39:47 +04:00
|
|
|
explicit ComboBox (QWidget *parent = nullptr);
|
2013-10-22 21:52:35 -05:00
|
|
|
|
|
|
|
void setPlaceholderText(const QString &text);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString mPlaceholderText;
|
|
|
|
|
|
|
|
protected:
|
2020-10-16 22:18:54 +04:00
|
|
|
void paintEvent(QPaintEvent *) override;
|
2013-10-22 21:52:35 -05:00
|
|
|
QRegExpValidator *mValidator;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // COMBOBOX_HPP
|