equal
deleted
inserted
replaced
323 } |
323 } |
324 |
324 |
325 emit pathChanged(); |
325 emit pathChanged(); |
326 } |
326 } |
327 |
327 |
|
328 int DrawMapScene::pointsCount() |
|
329 { |
|
330 int cnt = 0; |
|
331 foreach(PathParams p, paths) |
|
332 cnt += p.points.size(); |
|
333 |
|
334 return cnt; |
|
335 } |
|
336 |
328 QPainterPath DrawMapScene::pointsToPath(const QList<QPoint> points) |
337 QPainterPath DrawMapScene::pointsToPath(const QList<QPoint> points) |
329 { |
338 { |
330 QPainterPath path; |
339 QPainterPath path; |
331 |
340 |
332 if(points.size()) |
341 if(points.size()) |