diff --git a/GUI/View/PlotSpecular/SpecularPlotCanvas.cpp b/GUI/View/PlotSpecular/SpecularPlotCanvas.cpp index 892e0bfacf5bb09ed7d6ace9644e1e323fe8fb1e..cb7bec64363fae51558eb2c8de281de17a9c03e8 100644 --- a/GUI/View/PlotSpecular/SpecularPlotCanvas.cpp +++ b/GUI/View/PlotSpecular/SpecularPlotCanvas.cpp @@ -25,14 +25,14 @@ SpecularPlotCanvas::SpecularPlotCanvas(QWidget* parent) , m_statusLabel(new PlotStatusLabel(m_plot, this)) { this->installEventFilter(m_canvasEvent); + auto* layout = new QVBoxLayout; + setLayout(layout); layout->setSpacing(0); layout->addWidget(m_plot); layout->addWidget(m_statusLabel); - setLayout(layout); - setStatusLabelEnabled(false); } diff --git a/GUI/View/PlotSpecular/SpecularPlotCanvas.h b/GUI/View/PlotSpecular/SpecularPlotCanvas.h index ca6de937f882cfc3fe27fdba40c76ca820b4f718..165afb72465ae8cb98f654de5ad2531bc112c558 100644 --- a/GUI/View/PlotSpecular/SpecularPlotCanvas.h +++ b/GUI/View/PlotSpecular/SpecularPlotCanvas.h @@ -3,7 +3,7 @@ // BornAgain: simulate and fit reflection and scattering // //! @file GUI/View/PlotSpecular/SpecularPlotCanvas.h -//! @brief Defines class ColorMapCanvas +//! @brief Defines class SpecularPlotCanvas //! //! @homepage http://www.bornagainproject.org //! @license GNU General Public License v3 or higher (see COPYING) @@ -17,11 +17,10 @@ #include <QWidget> -class DataItem; +class Data1DItem; class FontScalingEvent; class PlotStatusLabel; class QCustomPlot; -class Data1DItem; class SpecularPlot; //! Contains SpecularPlot for specular data presentation, and provides status string appearance.