1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-05 15:40:10 +00:00

30 lines
505 B
C++
Raw Normal View History

#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);
void setPlaceholderText(const QString &text);
private:
QString mPlaceholderText;
protected:
void paintEvent(QPaintEvent *) override;
QRegExpValidator *mValidator;
};
}
#endif // COMBOBOX_HPP