Refactor delete operations for pdm objects.

This commit is contained in:
Kristian Bendiksen
2020-05-18 16:02:27 +02:00
committed by Magne Sjaastad
parent 80ee1256e7
commit c366e85682
90 changed files with 474 additions and 438 deletions

View File

@@ -42,6 +42,8 @@ RimColorLegendItem::RimColorLegendItem()
m_nameProxy.registerGetMethod( this, &RimColorLegendItem::extractColorItemName );
m_nameProxy.uiCapability()->setUiHidden( true );
m_nameProxy.xmlCapability()->disableIO();
setDeletable( true );
}
//--------------------------------------------------------------------------------------------------
@@ -69,6 +71,7 @@ void RimColorLegendItem::setReadOnly( bool doReadOnly )
m_categoryName.uiCapability()->setUiReadOnly( true );
m_categoryValue.uiCapability()->setUiReadOnly( true );
m_color.uiCapability()->setUiReadOnly( true );
setDeletable( !doReadOnly );
}
//--------------------------------------------------------------------------------------------------