diff -r 74cb432812d3 -r 85fd352bae45 src/editmodes/rectangleMode.h --- a/src/editmodes/rectangleMode.h Sun Oct 04 16:45:30 2015 +0300 +++ b/src/editmodes/rectangleMode.h Sun Oct 04 16:55:26 2015 +0300 @@ -27,10 +27,11 @@ public: RectangleMode (GLRenderer* renderer); - virtual void render (QPainter& painter) const override; - virtual EditModeType type() const override; - virtual bool mouseReleased (MouseEventData const& data) override; - virtual bool mouseMoved (QMouseEvent*) override; + void render (QPainter& painter) const override; + EditModeType type() const override; + void endDraw() override; + bool mouseMoved (QMouseEvent*) override; + int maxVertices() const override { return 2; } private: void updateRectVerts();