Skip to content
Snippets Groups Projects
Commit e630dbe7 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rename fct -> xAxisLabel etc

parent 08647941
No related branches found
No related tags found
1 merge request!2055GUI cleanup while reading towards detector editor
......@@ -214,12 +214,12 @@ AmplitudeAxisItem* DataItem::axItemY()
return m_yAxis.get();
}
QString DataItem::XaxisTitle() const
QString DataItem::xAxisLabel() const
{
return m_datafield ? QString::fromStdString(m_datafield->xAxis().axisLabel()) : "";
}
QString DataItem::YaxisTitle() const
QString DataItem::yAxisLabel() const
{
return m_datafield ? QString::fromStdString(m_datafield->yAxis().axisLabel()) : "";
}
......
......@@ -94,8 +94,8 @@ public:
AmplitudeAxisItem* axItemY();
// Axes titles
QString XaxisTitle() const;
QString YaxisTitle() const;
QString xAxisLabel() const;
QString yAxisLabel() const;
//! Returns dimensions and axesbins of data
virtual std::vector<int> shape() const = 0;
......
......@@ -252,7 +252,7 @@ void SpecularPlot::setAxesLabels()
{
if (!currentData1DItem())
return;
m_plot->xAxis->setLabel(currentData1DItem()->XaxisTitle());
m_plot->xAxis->setLabel(currentData1DItem()->xAxisLabel());
m_plot->yAxis->setLabel("Reflectivity");
replot();
}
......
......@@ -342,8 +342,8 @@ void ColorMap::setAxesLabelsFromItem()
if (!ii)
return;
m_plot->xAxis->setLabel(ii->XaxisTitle());
m_plot->yAxis->setLabel(ii->YaxisTitle());
m_plot->xAxis->setLabel(ii->xAxisLabel());
m_plot->yAxis->setLabel(ii->yAxisLabel());
m_colorScale->setMargins(QMargins(0, 0, 0, 0));
replot();
......
......@@ -242,9 +242,9 @@ void ProjectionsPlot::updateAxesTitle()
return;
if (isHorizontalType())
m_plot->xAxis->setLabel(ii->XaxisTitle());
m_plot->xAxis->setLabel(ii->xAxisLabel());
else
m_plot->xAxis->setLabel(ii->YaxisTitle());
m_plot->xAxis->setLabel(ii->yAxisLabel());
}
//! Removes plot corresponding to given projection item.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment