#2170 Summary Cross Plot : Show/hide toolbar based on active view

This commit is contained in:
Magne Sjaastad
2017-12-01 13:55:36 +01:00
parent 68bcd5253b
commit a5b361f8c9
4 changed files with 47 additions and 16 deletions

View File

@@ -185,4 +185,26 @@ void PdmUiToolBarEditor::clear()
m_actions.clear();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void PdmUiToolBarEditor::show()
{
if (m_toolbar)
{
m_toolbar->show();
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void PdmUiToolBarEditor::hide()
{
if (m_toolbar)
{
m_toolbar->hide();
}
}
} // end namespace caf

View File

@@ -63,6 +63,9 @@ public:
void setFields(std::vector<caf::PdmFieldHandle*>& fields);
void clear();
void show();
void hide();
private:
virtual void configureAndUpdateUi(const QString& uiConfigName) override;