81 void LinePathMode::endDraw() |
81 void LinePathMode::endDraw() |
82 { |
82 { |
83 Model model {m_documents}; |
83 Model model {m_documents}; |
84 |
84 |
85 for (int i = 0; i < countof(m_drawedVerts) - 1; ++i) |
85 for (int i = 0; i < countof(m_drawedVerts) - 1; ++i) |
86 model.emplace<LDLine>(m_drawedVerts[i], m_drawedVerts[i + 1]); |
86 model.emplace<LDEdgeLine>(m_drawedVerts[i], m_drawedVerts[i + 1]); |
87 |
87 |
88 finishDraw(model); |
88 finishDraw(model); |
89 } |
89 } |
90 |
90 |
91 bool LinePathMode::keyReleased (QKeyEvent* ev) |
91 bool LinePathMode::keyReleased (QKeyEvent* ev) |