src/editmodes/rectangleMode.h

changeset 1009
85fd352bae45
parent 1006
a6b462051ae0
child 1014
f0a8ecb6a357
child 1217
314e12e23c3a
equal deleted inserted replaced
1008:74cb432812d3 1009:85fd352bae45
25 QVector<Vertex> m_rectangleVerts; 25 QVector<Vertex> m_rectangleVerts;
26 26
27 public: 27 public:
28 RectangleMode (GLRenderer* renderer); 28 RectangleMode (GLRenderer* renderer);
29 29
30 virtual void render (QPainter& painter) const override; 30 void render (QPainter& painter) const override;
31 virtual EditModeType type() const override; 31 EditModeType type() const override;
32 virtual bool mouseReleased (MouseEventData const& data) override; 32 void endDraw() override;
33 virtual bool mouseMoved (QMouseEvent*) override; 33 bool mouseMoved (QMouseEvent*) override;
34 int maxVertices() const override { return 2; }
34 35
35 private: 36 private:
36 void updateRectVerts(); 37 void updateRectVerts();
37 }; 38 };

mercurial