1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00
2022-09-22 21:35:26 +03:00

30 lines
503 B
C++

#ifndef COMBOBOX_HPP
#define COMBOBOX_HPP
#include <QComboBox>
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