1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2015-10-22 09:43:21 +02:00
parent cd2426049b
commit d1b5642fdd
2 changed files with 2 additions and 7 deletions

View File

@ -136,11 +136,8 @@ void Graph::loadData(const QVector<QPointF> &data)
updateBounds(data.at(i));
}
QBrush brush(color, Qt::SolidPattern);
QPen pen(brush, 0);
pi = new QGraphicsPathItem(path);
pi->setPen(pen);
pi->setPen(QPen(color));
_scene->addItem(pi);
_graphs.append(pi);

View File

@ -53,10 +53,8 @@ void Track::loadGPX(const GPX &gpx)
_scene->removeItem(_markers.at(i));
}
QBrush brush(color, Qt::SolidPattern);
QPen pen(brush, 0);
pi = new QGraphicsPathItem(path);
pi->setPen(pen);
pi->setPen(QPen(color));
_scene->addItem(pi);
_trackPaths.append(pi);