(#483) Improved how filters and filter collections are grayed out

This commit is contained in:
Magne Sjaastad
2015-11-02 09:30:04 +01:00
parent 9eb5c73842
commit 73489780bf
14 changed files with 257 additions and 44 deletions

View File

@@ -139,6 +139,7 @@ RigActiveCellInfo* RimCellRangeFilterCollection::activeCellInfo() const
void RimCellRangeFilterCollection::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
{
updateIconState();
uiCapability()->updateConnectedEditors();
updateDisplayModeNotifyManagedViews(NULL);
}
@@ -331,12 +332,11 @@ void RimCellRangeFilterCollection::updateIconState()
updateUiIconFromState(activeIcon);
uiCapability()->updateConnectedEditors();
for (size_t i = 0; i < rangeFilters.size(); i++)
{
RimCellFilter* cellFilter = rangeFilters[i];
cellFilter->updateIconState();
RimCellRangeFilter* rangeFilter = rangeFilters[i];
rangeFilter->updateActiveState();
rangeFilter->updateIconState();
}
}
@@ -356,5 +356,7 @@ void RimCellRangeFilterCollection::defineUiTreeOrdering(caf::PdmUiTreeOrdering&
{
isActive.uiCapability()->setUiReadOnly(false);
}
updateIconState();
}