1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-17 01:10:10 +00:00
OpenMW/components/contentselector/view/combobox.hpp
2020-11-29 11:14:07 +04:00

31 lines
530 B
C++

#ifndef COMBOBOX_HPP
#define COMBOBOX_HPP
#include <QComboBox>
#include <QStylePainter>
class QString;
class QRegExpValidator;
namespace ContentSelectorView
{
class ComboBox : public QComboBox
{
Q_OBJECT
public:
explicit ComboBox (QWidget *parent = nullptr);
void setPlaceholderText(const QString &text);
private:
QString mPlaceholderText;
protected:
void paintEvent(QPaintEvent *) override;
QRegExpValidator *mValidator;
};
}
#endif // COMBOBOX_HPP