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

Refactoring

This commit is contained in:
Martin Tůma 2016-03-02 09:34:39 +01:00
parent 70238062f2
commit e52a163529
4 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -84,7 +84,7 @@ private:
QList<QGraphicsPathItem*> _graphs;
qreal _xMin, _xMax, _yMin, _yMax;
Palette _colorShop;
Palette _palette;
};
#endif // GRAPHVIEW_H

View File

@ -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;

View File

@ -65,7 +65,7 @@ private:
Map *_map;
ScaleItem *_mapScale;
Palette _colorShop;
Palette _palette;
qreal _maxLen;
qreal _scale;