src/editmodes/linePathMode.cpp

changeset 1042
b54b78ac41a5
parent 1014
f0a8ecb6a357
child 1056
27b7991b3bea
equal deleted inserted replaced
1041:9fc08b73b8c4 1042:b54b78ac41a5
38 if (points.size() == points3d.size()) 38 if (points.size() == points3d.size())
39 { 39 {
40 for (int i = 0; i < points.size() - 1; ++i) 40 for (int i = 0; i < points.size() - 1; ++i)
41 { 41 {
42 painter.drawLine (QLineF (points[i], points[i + 1])); 42 painter.drawLine (QLineF (points[i], points[i + 1]));
43 drawLength (painter, points3d[i], points3d[i + 1], points[i], points[i + 1]); 43 drawLineLength (painter, points3d[i], points3d[i + 1], points[i], points[i + 1]);
44 } 44 }
45 45
46 for (int i = 0; i < points.size(); ++i) 46 for (int i = 0; i < points.size(); ++i)
47 { 47 {
48 const QPointF& point = points[i]; 48 const QPointF& point = points[i];

mercurial