mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2170 Summary Cross Plot : Show/hide toolbar based on active view
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user