QTfrontend/drawmapscene.cpp
changeset 6935 472ed92c4173
parent 6934 14a230552c2e
child 6952 7f70f37bbf08
equal deleted inserted replaced
6934:14a230552c2e 6935:472ed92c4173
   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())