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

inline fct

parent 66d20bf9
No related branches found
No related tags found
1 merge request!2009further cleanup while reading GUI/Model/Mask
......@@ -73,13 +73,6 @@ void IntensityDataProjectionsWidget::setContext()
m_editorActions->setContext(currentData2DItem());
}
void IntensityDataProjectionsWidget::resetContext()
{
m_projectionsCanvas->resetContext();
m_projectionsWidget->disconnectItem();
m_projectionsWidget->setData2DItem(nullptr);
}
void IntensityDataProjectionsWidget::showEvent(QShowEvent*)
{
if (currentData2DItem())
......@@ -88,7 +81,9 @@ void IntensityDataProjectionsWidget::showEvent(QShowEvent*)
void IntensityDataProjectionsWidget::hideEvent(QHideEvent*)
{
resetContext();
m_projectionsCanvas->resetContext();
m_projectionsWidget->disconnectItem();
m_projectionsWidget->setData2DItem(nullptr);
}
QList<QAction*> IntensityDataProjectionsWidget::actionList()
......
......@@ -36,7 +36,6 @@ public:
private:
void setContext();
void resetContext();
void showEvent(QShowEvent*) override;
void hideEvent(QHideEvent*) override;
void setup_connections();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment