#ifndef COLORPICKERSCENE_HPP #define COLORPICKERSCENE_HPP #include #include #include #include #include #include #include #include #include class ColorPickerScene : public ScreenOverlay, public ScreenOverlayView { Q_DECLARE_TR_FUNCTIONS(ColorPickerScene) public: ColorPickerScene(QPixmap pixmap, QWidget *parent = nullptr); void keyPressEvent(QKeyEvent *event) override; void mouseReleaseEvent(QGraphicsSceneMouseEvent *) override; static void showPicker() { new ColorPickerScene(utils::fullscreen()); } protected: QString generateHint() override; private: QImage image; QColor color; }; #endif // COLORPICKERSCENE_HPP