mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Refactoring
This commit is contained in:
parent
70238062f2
commit
e52a163529
@ -131,7 +131,7 @@ void GraphView::loadData(const QVector<QPointF> &data)
|
||||
{
|
||||
QPainterPath path;
|
||||
QGraphicsPathItem *pi;
|
||||
QColor color = _colorShop.color();
|
||||
QColor color = _palette.color();
|
||||
|
||||
|
||||
if (data.size() < 2)
|
||||
@ -262,7 +262,7 @@ void GraphView::clear()
|
||||
_info->clear();
|
||||
_scene->clear();
|
||||
_graphs.clear();
|
||||
_colorShop.reset();
|
||||
_palette.reset();
|
||||
|
||||
_xMax = -FLT_MAX;
|
||||
_xMin = FLT_MAX;
|
||||
|
@ -84,7 +84,7 @@ private:
|
||||
|
||||
QList<QGraphicsPathItem*> _graphs;
|
||||
qreal _xMin, _xMax, _yMin, _yMax;
|
||||
Palette _colorShop;
|
||||
Palette _palette;
|
||||
};
|
||||
|
||||
#endif // GRAPHVIEW_H
|
||||
|
@ -50,7 +50,7 @@ void TrackView::loadGPX(const GPX &gpx)
|
||||
QPainterPath path;
|
||||
QGraphicsPathItem *pi;
|
||||
MarkerItem *mi;
|
||||
QColor color = _colorShop.color();
|
||||
QColor color = _palette.color();
|
||||
qreal prevScale = _scale;
|
||||
|
||||
|
||||
@ -319,7 +319,7 @@ void TrackView::clear()
|
||||
_trackPaths.clear();
|
||||
_markers.clear();
|
||||
_scene->clear();
|
||||
_colorShop.reset();
|
||||
_palette.reset();
|
||||
|
||||
_maxLen = 0;
|
||||
|
||||
|
@ -65,7 +65,7 @@ private:
|
||||
Map *_map;
|
||||
ScaleItem *_mapScale;
|
||||
|
||||
Palette _colorShop;
|
||||
Palette _palette;
|
||||
qreal _maxLen;
|
||||
|
||||
qreal _scale;
|
||||
|
Loading…
Reference in New Issue
Block a user