OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
combobox.hpp
Go to the documentation of this file.
1 #ifndef COMBOBOX_HPP
2 #define COMBOBOX_HPP
3 
4 #include <QComboBox>
5 #include <QStylePainter>
6 
7 class QString;
8 class QRegExpValidator;
9 
10 namespace ContentSelectorView
11 {
12  class ComboBox : public QComboBox
13  {
14  Q_OBJECT
15 
16  public:
17  explicit ComboBox (QWidget *parent = 0);
18 
19  void setPlaceholderText(const QString &text);
20 
21  private:
23 
24  protected:
25  void paintEvent(QPaintEvent *);
26  QRegExpValidator *mValidator;
27  };
28 }
29 
30 #endif // COMBOBOX_HPP
void setPlaceholderText(const QString &text)
Definition: combobox.cpp:36
ComboBox(QWidget *parent=0)
Definition: combobox.cpp:9
QString mPlaceholderText
Definition: combobox.hpp:22
Definition: combobox.hpp:12
QRegExpValidator * mValidator
Definition: combobox.hpp:26
void paintEvent(QPaintEvent *)
Definition: combobox.cpp:20