diff -r 8c9fff699241 -r 000781318c36 src/tools/drawtool.h --- a/src/tools/drawtool.h Wed Jul 28 13:22:51 2021 +0300 +++ b/src/tools/drawtool.h Fri Jul 30 01:28:39 2021 +0300 @@ -10,8 +10,8 @@ QString name() const override; QString toolTip() const override; - bool mouseClick(Document* document, Canvas* canvas) override; - bool mouseMove(Document* document, Canvas* canvas) override; + bool mouseClick(Document* document, Canvas* canvas, QMouseEvent* event) override; + bool mouseMove(Document* document, Canvas* canvas, QMouseEvent* event) override; void reset() override; void overpaint(Canvas*, QPainter*) const override; private: @@ -19,4 +19,5 @@ std::vector polygon; std::vector previewPolygon; glm::vec3 previewPoint; + void updatePreviewPolygon(); };