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

replace 'setContextMW' by 'updateMaskFrame'

parent 9e800e1d
No related branches found
No related tags found
1 merge request!2253mostly renames, spell out setContext...
Pipeline #124153 passed
...@@ -87,7 +87,7 @@ MaskEditingFrame::MaskEditingFrame(QWidget* parent) ...@@ -87,7 +87,7 @@ MaskEditingFrame::MaskEditingFrame(QWidget* parent)
void MaskEditingFrame::setJobOrDatafileItem(QObject* item) void MaskEditingFrame::setJobOrDatafileItem(QObject* item)
{ {
setBaseItem(item); setBaseItem(item);
setContextMW(); updateMaskFrame();
} }
//! shows/hides right panel with properties //! shows/hides right panel with properties
...@@ -106,7 +106,7 @@ QList<QAction*> MaskEditingFrame::actionList() ...@@ -106,7 +106,7 @@ QList<QAction*> MaskEditingFrame::actionList()
void MaskEditingFrame::showEvent(QShowEvent*) void MaskEditingFrame::showEvent(QShowEvent*)
{ {
if (currentData2DItem()) if (currentData2DItem())
setContextMW(); updateMaskFrame();
} }
void MaskEditingFrame::hideEvent(QHideEvent*) void MaskEditingFrame::hideEvent(QHideEvent*)
...@@ -115,7 +115,7 @@ void MaskEditingFrame::hideEvent(QHideEvent*) ...@@ -115,7 +115,7 @@ void MaskEditingFrame::hideEvent(QHideEvent*)
m_canvas->resetMaskCanvas(); m_canvas->resetMaskCanvas();
} }
void MaskEditingFrame::setContextMW() void MaskEditingFrame::updateMaskFrame()
{ {
ASSERT(currentData2DItem()); ASSERT(currentData2DItem());
......
...@@ -33,7 +33,7 @@ public: ...@@ -33,7 +33,7 @@ public:
QList<QAction*> actionList() override; QList<QAction*> actionList() override;
private: private:
void setContextMW(); void updateMaskFrame();
void onPropertyPanelRequest(); void onPropertyPanelRequest();
void showEvent(QShowEvent*) override; void showEvent(QShowEvent*) override;
void hideEvent(QHideEvent*) override; void hideEvent(QHideEvent*) override;
......
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