1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 07:45:34 +00:00
openmw/components/contentselector/view/combobox.hpp

30 lines
503 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:
2022-09-22 18:26:05 +00:00
explicit ComboBox(QWidget* parent = nullptr);
2022-09-22 18:26:05 +00:00
void setPlaceholderText(const QString& text);
private:
QString mPlaceholderText;
protected:
2022-09-22 18:26:05 +00:00
void paintEvent(QPaintEvent*) override;
QRegExpValidator* mValidator;
};
}
#endif // COMBOBOX_HPP