Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gzotti committed May 18, 2022
1 parent 3040df2 commit bc4eea3
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions plugins/Exoplanets/src/gui/ExoplanetsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,6 @@ void ExoplanetsDialog::drawDiagram()
const bool axisYlog=ui->checkBoxLogY->isChecked();

QList<double> aX = ep->getExoplanetsData(currentAxisX), aY = ep->getExoplanetsData(currentAxisY);
QVector<double> x = aX.toVector(), y = aY.toVector();

QtCharts::QChart *chart=new QtCharts::QChart();
chart->setBackgroundBrush(QBrush(QColor(86, 87, 90)));
Expand Down Expand Up @@ -820,7 +819,6 @@ void ExoplanetsDialog::drawDiagram()
}
else
series->append(aX.at(i), aY.at(i));

}

// Find range of actually used values
Expand Down Expand Up @@ -897,9 +895,9 @@ void ExoplanetsDialog::drawDiagram()
font.setBold(false);
chartYAxis->setTitleFont(font);

static const QPen axisPen( Qt::white, 1, Qt::SolidLine);
static const QPen axisGridPen( Qt::white, 0.5, Qt::SolidLine);
static const QPen axisMinorGridPen( Qt::white, 0.35, Qt::DotLine);
static const QPen axisPen( Qt::white, 1, Qt::SolidLine);
static const QPen axisGridPen( Qt::white, 0.5, Qt::SolidLine);
static const QPen axisMinorGridPen( Qt::white, 0.35, Qt::DotLine);

chartXAxis->setTitleBrush(Qt::white);
chartXAxis->setLabelsBrush(Qt::white);
Expand All @@ -919,19 +917,13 @@ void ExoplanetsDialog::drawDiagram()
if (oldChart) oldChart->deleteLater();
ui->chartView->setChart(chart);
ui->chartView->setRenderHint(QPainter::Antialiasing);

}

void ExoplanetsDialog::populateDiagramsList()
{
Q_ASSERT(ui->comboAxisX);
Q_ASSERT(ui->comboAxisY);

//QColor axisColor(Qt::white);
//QPen axisPen(axisColor, 1);



QComboBox* axisX = ui->comboAxisX;
QComboBox* axisY = ui->comboAxisY;

Expand Down

0 comments on commit bc4eea3

Please sign in to comment.