OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
colorpickerpopup.hpp
Go to the documentation of this file.
1 #ifndef CSVWIDGET_COLORPICKERPOPUP_HPP
2 #define CSVWIDGET_COLORPICKERPOPUP_HPP
3 
4 #include <QFrame>
5 
6 class QColorDialog;
7 
8 namespace CSVWidget
9 {
10  class ColorPickerPopup : public QFrame
11  {
12  Q_OBJECT
13 
14  QColorDialog *mColorPicker;
15 
16  public:
17  explicit ColorPickerPopup(QWidget *parent);
18 
19  void showPicker(const QPoint &position, const QColor &initialColor);
20 
21  protected:
22  virtual void mousePressEvent(QMouseEvent *event);
23  virtual void hideEvent(QHideEvent *event);
24  virtual bool eventFilter(QObject *object, QEvent *event);
25 
26  signals:
27  void hid();
28  void colorChanged(const QColor &color);
29  };
30 }
31 
32 #endif
virtual void mousePressEvent(QMouseEvent *event)
Definition: colorpickerpopup.cpp:46
static const struct @2 signals[]
virtual bool eventFilter(QObject *object, QEvent *event)
Definition: colorpickerpopup.cpp:72
void colorChanged(const QColor &color)
ColorPickerPopup(QWidget *parent)
Definition: colorpickerpopup.cpp:11
QColorDialog * mColorPicker
Definition: colorpickerpopup.hpp:14
virtual void hideEvent(QHideEvent *event)
Definition: colorpickerpopup.cpp:66
Definition: colorpickerpopup.hpp:10
void showPicker(const QPoint &position, const QColor &initialColor)
Definition: colorpickerpopup.cpp:36