Pencil2D  ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
 All Classes Functions
popupcolorpalettewidget.h
1 #ifndef POPUPCOLORPALETTEWIDGET_H
2 #define POPUPCOLORPALETTEWIDGET_H
3 
4 #include <QWidget>
5 
6 class ColorBox;
7 class ScribbleArea;
8 class QPushButton;
9 
10 
11 class PopupColorPaletteWidget : public QWidget
12 {
13  Q_OBJECT
14 
15 public:
17  QPushButton* closeButton;
18  ColorBox* getColorBox() { return mColorBox; }
19  void popup();
20 
21 private slots:
22  void onColorChanged(const QColor& color);
23 
24 protected:
25  ScribbleArea* mContainer;
26  ColorBox* mColorBox = nullptr;
27  void keyPressEvent(QKeyEvent *event);
28 };
29 
30 #endif // POPUPCOLORPALETTEWIDGET_H