mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
#2607 caf: Add selection level to the "notify selection changed" system
This commit is contained in:
1 parent
75c76016e1
commit
e10754cffb
7 files changed
+30
-22
No files matched your search
+3
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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