1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-07 08:02:50 +02:00

Code cleanup

This commit is contained in:
2018-06-01 19:07:21 +02:00
parent ca7016176f
commit 815cb6cb91
5 changed files with 12 additions and 33 deletions

View File

@ -63,20 +63,14 @@ GraphView::GraphView(QWidget *parent)
GraphView::~GraphView()
{
if (_xAxis->scene() != _scene)
delete _xAxis;
if (_yAxis->scene() != _scene)
delete _yAxis;
if (_slider->scene() != _scene)
delete _slider;
if (_info->scene() != _scene)
delete _info;
if (_grid->scene() != _scene)
delete _grid;
delete _xAxis;
delete _yAxis;
delete _slider;
delete _info;
delete _grid;
for (int i = 0; i < _graphs.count(); i++)
if (_graphs.at(i)->scene() != _scene)
delete _graphs[i];
delete _graphs[i];
}
void GraphView::createXLabel()