diff --git a/GUI/View/Frame/SpecularFrame.cpp b/GUI/View/Frame/SpecularFrame.cpp index 91e7f573a73ccfa77695174c2e099a4f672ba038..91173bba9192262d78fbade9daa17b904c4b3af1 100644 --- a/GUI/View/Frame/SpecularFrame.cpp +++ b/GUI/View/Frame/SpecularFrame.cpp @@ -24,28 +24,28 @@ SpecularFrame::SpecularFrame(Data1DItem* item) : m_specular_canvas(new SpecularDataCanvas) - , m_scale_editor(new AxisPanel) + , m_axis_panel(new AxisPanel) // , m_data_item(item) { setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - m_scale_editor->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::MinimumExpanding); - QObject::connect(gActions->toggle_properties_panel, &QAction::triggered, m_scale_editor, + m_axis_panel->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::MinimumExpanding); + QObject::connect(gActions->toggle_properties_panel, &QAction::triggered, m_axis_panel, &QWidget::setVisible); auto* hlayout = new QHBoxLayout(this); hlayout->setContentsMargins(0, 0, 0, 0); hlayout->setSpacing(0); hlayout->addWidget(m_specular_canvas); - hlayout->addWidget(m_scale_editor); + hlayout->addWidget(m_axis_panel); connect(m_specular_canvas, &SpecularDataCanvas::customContextMenuRequested, this, &SpecularFrame::onContextMenuRequest); - m_scale_editor->setVisible(false); + m_axis_panel->setVisible(false); ASSERT(item); m_specular_canvas->setDataItem(item); - m_scale_editor->setJobOrDatafileItem(item); + m_axis_panel->setJobOrDatafileItem(item); } void SpecularFrame::onContextMenuRequest(const QPoint& point) diff --git a/GUI/View/Frame/SpecularFrame.h b/GUI/View/Frame/SpecularFrame.h index fdb90bff39e19bd46da904dcf96511d7f7cb745a..dbe29a857379a344a77f35c28551ab40f7ab419a 100644 --- a/GUI/View/Frame/SpecularFrame.h +++ b/GUI/View/Frame/SpecularFrame.h @@ -31,7 +31,7 @@ private slots: private: SpecularDataCanvas* m_specular_canvas; - AxisPanel* m_scale_editor; + AxisPanel* m_axis_panel; // const Data1DItem* m_data_item; };