mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added command features for "insert" and "delete" for property filters
Made sure that only "new" is available for property filter collections, while "insert" and "delete" are available for property filters in the tree view. TODO: Implement execution for insert and delete
This commit is contained in:
@@ -577,11 +577,15 @@ void RimProject::actionsBasedOnSelection(std::vector<QAction*>& actions)
|
||||
actions.push_back(commandManager->action("RicRangeFilterNewSliceK"));
|
||||
actions.push_back(commandManager->action("RicRangeFilterDelete"));
|
||||
}
|
||||
else if (dynamic_cast<RimEclipsePropertyFilterCollection*>(uiItems[0])
|
||||
|| dynamic_cast<RimEclipsePropertyFilter*>(uiItems[0]))
|
||||
else if (dynamic_cast<RimEclipsePropertyFilterCollection*>(uiItems[0]))
|
||||
{
|
||||
actions.push_back(commandManager->action("RicEclipsePropertyFilterNew"));
|
||||
}
|
||||
else if (dynamic_cast<RimEclipsePropertyFilter*>(uiItems[0]))
|
||||
{
|
||||
actions.push_back(commandManager->action("RicEclipsePropertyFilterInsert"));
|
||||
actions.push_back(commandManager->action("RicEclipsePropertyFilterDelete"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user