diff --git a/GUI/View/Plotter/ColorMap.cpp b/GUI/View/Plotter/ColorMap.cpp index 220907e44ac10532fc12d0b2500d5d7d10cae14e..3214d7b899a40b0694f9454f534309435f1badd0 100644 --- a/GUI/View/Plotter/ColorMap.cpp +++ b/GUI/View/Plotter/ColorMap.cpp @@ -159,7 +159,7 @@ void ColorMap::setLogz() return; bool logz = ii->isLog(); m_color_bar_layout->setMinimumSize(logz ? colorbar_width_logz : colorbar_width, 10); - GUI::QCP_Util::setLogz(m_color_scale, logz); + GUI::QCP_RangeUtil::setLogz(m_color_scale, logz); replot(); } diff --git a/GUI/View/Plotter/ProjectionsPlot.cpp b/GUI/View/Plotter/ProjectionsPlot.cpp index 00efef0d30f435ab0facf4ce4774a82ff4e4543e..1579b67e6538edf7fe8c3d8e4eb40fe35297b062 100644 --- a/GUI/View/Plotter/ProjectionsPlot.cpp +++ b/GUI/View/Plotter/ProjectionsPlot.cpp @@ -270,7 +270,7 @@ void ProjectionsPlot::setInterpolate(bool isInterpolated) void ProjectionsPlot::setLogz(bool isLogz) { - GUI::QCP_Util::setLogz(m_qcp->yAxis, isLogz); + GUI::QCP_RangeUtil::setLogz(m_qcp->yAxis, isLogz); } void ProjectionsPlot::replot() diff --git a/GUI/View/Plotter/RangeUtil.cpp b/GUI/View/Plotter/RangeUtil.cpp index 6f9e1afcf1f03915912d9bd704998ba8dbaaae6d..0c8f960bfcccf66d6c208d307d74d53d9274cc15 100644 --- a/GUI/View/Plotter/RangeUtil.cpp +++ b/GUI/View/Plotter/RangeUtil.cpp @@ -3,7 +3,7 @@ // BornAgain: simulate and fit reflection and scattering // //! @file GUI/View/Plotter/RangeUtil.cpp -//! @brief Implements namespace QCP_Util. +//! @brief Implements namespace QCP_RangeUtil. //! //! @homepage http://www.bornagainproject.org //! @license GNU General Public License v3 or higher (see COPYING) @@ -15,7 +15,7 @@ #include "GUI/View/Plotter/RangeUtil.h" #include <qcustomplot.h> -void GUI::QCP_Util::setLogz(QCPColorScale* scale, bool isLogz) +void GUI::QCP_RangeUtil::setLogz(QCPColorScale* scale, bool isLogz) { if (isLogz && scale->dataScaleType() != QCPAxis::stLogarithmic) scale->setDataScaleType(QCPAxis::stLogarithmic); @@ -26,7 +26,7 @@ void GUI::QCP_Util::setLogz(QCPColorScale* scale, bool isLogz) setLogz(scale->axis(), isLogz); } -void GUI::QCP_Util::setLogz(QCPAxis* axis, bool isLogz) +void GUI::QCP_RangeUtil::setLogz(QCPAxis* axis, bool isLogz) { if (isLogz) { axis->setNumberFormat("e"); diff --git a/GUI/View/Plotter/RangeUtil.h b/GUI/View/Plotter/RangeUtil.h index 535fec4f2e6790643117f547c470246c83baa165..c8203d0350d0b1cd1fefb9077a071761ae27f77d 100644 --- a/GUI/View/Plotter/RangeUtil.h +++ b/GUI/View/Plotter/RangeUtil.h @@ -3,7 +3,7 @@ // BornAgain: simulate and fit reflection and scattering // //! @file GUI/View/Plotter/RangeUtil.h -//! @brief Defines namespace QCP_Util. +//! @brief Defines namespace QCP_RangeUtil. //! //! @homepage http://www.bornagainproject.org //! @license GNU General Public License v3 or higher (see COPYING) @@ -20,12 +20,12 @@ class QCPColorScale; //! Provides few helper functions for ColorMapPlot. -namespace GUI::QCP_Util { +namespace GUI::QCP_RangeUtil { void setLogz(QCPColorScale* scale, bool isLogz); void setLogz(QCPAxis* axis, bool isLogz); -} // namespace GUI::QCP_Util +} // namespace GUI::QCP_RangeUtil #endif // BORNAGAIN_GUI_VIEW_PLOTTER_RANGEUTIL_H diff --git a/GUI/View/Plotter/SpecularPlot.cpp b/GUI/View/Plotter/SpecularPlot.cpp index 29d13bcf37506b0f233ad00168c6a001be4bf053..10e89adb7eb6e986866fb461613e6ce288a53173 100644 --- a/GUI/View/Plotter/SpecularPlot.cpp +++ b/GUI/View/Plotter/SpecularPlot.cpp @@ -95,8 +95,8 @@ void SpecularPlot::setLog() { if (!currentData1DItem()) return; - GUI::QCP_Util::setLogz(m_qcp->yAxis, currentData1DItem()->isLog()); - GUI::QCP_Util::setLogz(m_qcp->yAxis2, currentData1DItem()->isLog()); + GUI::QCP_RangeUtil::setLogz(m_qcp->yAxis, currentData1DItem()->isLog()); + GUI::QCP_RangeUtil::setLogz(m_qcp->yAxis2, currentData1DItem()->isLog()); replot(); }