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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
525 B
C++
Raw Normal View History

#ifndef COMBOBOX_HPP
#define COMBOBOX_HPP
#include <QComboBox>
class QString;
class QRegularExpressionValidator;
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;
QRegularExpressionValidator* mValidator;
};
}
#endif // COMBOBOX_HPP