diff --git a/GUI/View/PlotUtil/PlotEventHelper.cpp b/GUI/View/PlotUtil/PlotEventHelper.cpp index 92f9ffac53f2ac54401951da01671fe4fd6a8243..5ceb02dd64a3f5eabaf01c9c7485e6300f04109d 100644 --- a/GUI/View/PlotUtil/PlotEventHelper.cpp +++ b/GUI/View/PlotUtil/PlotEventHelper.cpp @@ -49,7 +49,7 @@ void PlotEventHelper::onCustomMouseMove(QMouseEvent* event) auto currentPos = currentPlotDescriptor(event); if (currentPos.inAxesRange()) { - m_plot->statusString(currentPos.statusString()); + m_plot->statusString(currentPos.infoString()); if (!m_prevPos.inAxesRange()) enteringPlot(); diff --git a/GUI/View/PlotUtil/PlotEventInfo.cpp b/GUI/View/PlotUtil/PlotEventInfo.cpp index fe12f5fa7a1d9f095cc47921c27fa5ec54d9938d..2f6eb95cec05bfa32877df575d5664d2159abe42 100644 --- a/GUI/View/PlotUtil/PlotEventInfo.cpp +++ b/GUI/View/PlotUtil/PlotEventInfo.cpp @@ -27,7 +27,7 @@ PlotEventInfo::PlotEventInfo(PLOT_TYPE type) { } -QString PlotEventInfo::statusString() const +QString PlotEventInfo::infoString() const { if (m_info_type == PLOT_TYPE::Plot1D) { QString intensityString = QString::fromStdString(Py::Fmt::printScientificDouble(m_value)); diff --git a/GUI/View/PlotUtil/PlotEventInfo.h b/GUI/View/PlotUtil/PlotEventInfo.h index fd3e9b95c4da4db0541b4ea61df29fe72575a354..c7ce59dbf2c1a47124c88be06661bf25e941ba07 100644 --- a/GUI/View/PlotUtil/PlotEventInfo.h +++ b/GUI/View/PlotUtil/PlotEventInfo.h @@ -26,7 +26,7 @@ class PlotEventInfo { public: PlotEventInfo(PLOT_TYPE type); - QString statusString() const; + QString infoString() const; // setters, getters void setInAxesRange(bool flag) { m_in_axes_range = flag; }