mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2607 caf: Add selection level to the "notify selection changed" system
This commit is contained in:
@@ -611,8 +611,10 @@ PdmUiSelectionVisualizer3d::~PdmUiSelectionVisualizer3d()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmUiSelectionVisualizer3d::onSelectionManagerSelectionChanged()
|
||||
void PdmUiSelectionVisualizer3d::onSelectionManagerSelectionChanged(int selectionLevel)
|
||||
{
|
||||
if (selectionLevel != caf::SelectionManager::APPLICATION_GLOBAL) return;
|
||||
|
||||
for (auto editor: m_active3DEditors)
|
||||
{
|
||||
delete editor;
|
||||
|
||||
@@ -231,7 +231,7 @@ public:
|
||||
PdmUiSelectionVisualizer3d(caf::Viewer* ownerViewer);
|
||||
~PdmUiSelectionVisualizer3d();
|
||||
protected:
|
||||
virtual void onSelectionManagerSelectionChanged() override;
|
||||
virtual void onSelectionManagerSelectionChanged(int selectionLevel) override;
|
||||
|
||||
std::vector< QPointer<PdmUiObject3dEditorHandle> > m_active3DEditors;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user