1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-17 10:10:23 +00:00
OpenMW/components/contentselector/view/combobox.hpp

31 lines
530 B
C++
Raw Normal View History

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