Add missing changes to canvas.h

Fri, 17 Sep 2021 22:38:53 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 17 Sep 2021 22:38:53 +0300
changeset 130
f2d78b30f2a9
parent 129
f35843351601
child 131
e2080ac44039

Add missing changes to canvas.h

src/ui/canvas.h file | annotate | diff | comparison | revisions
--- a/src/ui/canvas.h	Sun Sep 12 13:50:28 2021 +0300
+++ b/src/ui/canvas.h	Fri Sep 17 22:38:53 2021 +0300
@@ -23,7 +23,7 @@
 	void drawWorldPoint(QPainter* painter, const glm::vec3& worldPoint) const;
 	void drawWorldPolygon(QPainter* painter, const std::vector<glm::vec3>& points);
 	const std::optional<glm::vec3>& getWorldPosition() const;
-	void adjustGrid();
+	void adjustGridToView();
 public Q_SLOTS:
 	void handleSelectionChange(const QSet<ldraw::id_t>& selectedIds, const QSet<ldraw::id_t>& deselectedIds);
 	void rebuildVertices(Document *document);
@@ -39,7 +39,7 @@
 	void mouseClick(Canvas* canvas, QMouseEvent* event);
 	void mouseMove(Canvas* canvas, QMouseEvent* event);
 private:
-	void updateGridMatrix();
+	void setGridMatrix(const glm::mat4 &newMatrix);
 	glm::vec3 cameraVector() const;
 	bool isGridPerpendicularToScreen(float threshold) const;
 	std::optional<GridProgram> gridProgram;

mercurial