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

disambiguate (re)setContext fcts

parent 8ee9c062
No related branches found
No related tags found
1 merge request!2009further cleanup while reading GUI/Model/Mask
......@@ -119,7 +119,7 @@ void RealDataMaskWidget::showEvent(QShowEvent*)
void RealDataMaskWidget::hideEvent(QHideEvent*)
{
m_editorPropertyPanel->resetContext();
m_editorPropertyPanel->resetContextMPP();
m_editorCanvas->resetMaskContext();
}
......@@ -133,7 +133,7 @@ void RealDataMaskWidget::setContext()
MaskContainerModel* containerModel = containerItem->model();
ASSERT(containerModel);
m_editorPropertyPanel->setMaskContext(containerModel);
m_editorPropertyPanel->setContextMPP(containerModel);
m_editorCanvas->setSelectionModel(m_editorPropertyPanel->selectionModel());
m_editorCanvas->setMaskContext(currentData2DItem());
......
......@@ -95,7 +95,7 @@ QSize MaskEditorPropertyPanel::minimumSizeHint() const
return QSize(128, 128);
}
void MaskEditorPropertyPanel::setMaskContext(MaskContainerModel* containerModel)
void MaskEditorPropertyPanel::setContextMPP(MaskContainerModel* containerModel)
{
m_maskContainerModel = containerModel;
......@@ -107,7 +107,7 @@ void MaskEditorPropertyPanel::setMaskContext(MaskContainerModel* containerModel)
&MaskEditorPropertyPanel::onSelectionChanged, Qt::UniqueConnection);
}
void MaskEditorPropertyPanel::resetContext()
void MaskEditorPropertyPanel::resetContextMPP()
{
m_maskContainerModel = nullptr;
m_data2DItem = nullptr;
......
......@@ -40,9 +40,9 @@ public:
QSize sizeHint() const override;
QSize minimumSizeHint() const override;
void setMaskContext(MaskContainerModel* containerModel);
void setContextMPP(MaskContainerModel* containerModel);
void resetContext();
void resetContextMPP();
void setPanelHidden(bool hidden);
QItemSelectionModel* selectionModel();
......
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