1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-05 23:22:51 +02:00

Refactoring

This commit is contained in:
2016-03-19 09:06:43 +01:00
parent 816e1d1768
commit 17ab241a6d
3 changed files with 29 additions and 20 deletions

View File

@ -140,8 +140,9 @@ void GraphView::loadData(const QVector<QPointF> &data)
updateBounds(data.at(0));
path.moveTo(data.at(0).x(), -data.at(0).y());
for (int i = 1; i < data.size(); i++) {
path.lineTo(data.at(i).x(), -data.at(i).y());
updateBounds(data.at(i));
const QPointF &p = data.at(i);
path.lineTo(p.x(), -p.y());
updateBounds(p);
}
pi = new QGraphicsPathItem(path);