#8634 Improve performance when deleting multiple wells

Disable general framework delete function, and use special well path delete function
This commit is contained in:
Magne Sjaastad 2022-05-20 15:07:48 +02:00
parent ff57252812
commit 4a1a2fe2be
3 changed files with 11 additions and 0 deletions

View File

@ -72,4 +72,5 @@ void RicDeleteWellPathFeature::setupActionLook( QAction* actionToSetup )
{
actionToSetup->setText( "Delete Well Path" );
actionToSetup->setIcon( QIcon( ":/Erase.svg" ) );
actionToSetup->setShortcut( Qt::Key_Delete );
}

View File

@ -76,6 +76,15 @@ CAF_PDM_SOURCE_INIT( RimWellPath, "WellPathBase" );
//--------------------------------------------------------------------------------------------------
const char RimWellPath::SIM_WELL_NONE_UI_TEXT[] = "None";
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimWellPath::isDeletable() const
{
// Avoid framework functions, as delete is implemented in RicDeleteWellPathFeature
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -175,6 +175,7 @@ protected:
caf::PdmFieldHandle* userDescriptionField() override;
caf::PdmFieldHandle* objectToggleField() override;
bool isDeletable() const override;
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions,