feat: Add vertex snapping and draw line endpoints

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-14 22:16:14 -07:00
parent 78ac60926d
commit 6e64856f23
2 changed files with 86 additions and 0 deletions

View File

@@ -91,6 +91,8 @@ private:
gp_Pnt m_firstLinePoint;
QPoint m_currentMousePos;
bool m_isSnappingOrigin = false;
bool m_isSnappingVertex = false;
gp_Pnt m_snapVertex;
QMap<int, QSvgRenderer*> m_toolIcons;
QSvgRenderer* m_cursorRenderer = nullptr;