mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Code cleanup
This commit is contained in:
parent
cd2426049b
commit
d1b5642fdd
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user