Improved handling of icon enabled state

This commit is contained in:
Magne Sjaastad
2014-08-01 13:35:52 +02:00
parent c579c61404
commit 0550f9df8c
10 changed files with 20 additions and 17 deletions

View File

@@ -76,7 +76,7 @@ RimReservoirView* RimCellPropertyFilterCollection::reservoirView()
//--------------------------------------------------------------------------------------------------
void RimCellPropertyFilterCollection::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
{
this->updateUiIconFromState(active);
this->updateUiIconFromToggleField();
m_reservoirView->fieldChangedByUi(&(m_reservoirView->propertyFilterCollection), oldValue, newValue);
}
@@ -131,6 +131,8 @@ void RimCellPropertyFilterCollection::loadAndInitializePropertyFilters()
void RimCellPropertyFilterCollection::initAfterRead()
{
loadAndInitializePropertyFilters();
this->updateUiIconFromToggleField();
}
//--------------------------------------------------------------------------------------------------