forked from mirror/openmw-tes3mp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
515 B
C++
31 lines
515 B
C++
11 years ago
|
#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 = 0);
|
||
|
|
||
|
void setPlaceholderText(const QString &text);
|
||
|
|
||
|
private:
|
||
|
QString mPlaceholderText;
|
||
|
|
||
|
protected:
|
||
|
void paintEvent(QPaintEvent *);
|
||
|
QRegExpValidator *mValidator;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif // COMBOBOX_HPP
|