src/editmodes/rectangleMode.h

changeset 1009
85fd352bae45
parent 1006
a6b462051ae0
child 1014
f0a8ecb6a357
child 1217
314e12e23c3a
--- 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();

mercurial