mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8634 Improve performance when deleting multiple wells
Disable general framework delete function, and use special well path delete function
This commit is contained in:
parent
ff57252812
commit
4a1a2fe2be
@ -72,4 +72,5 @@ void RicDeleteWellPathFeature::setupActionLook( QAction* actionToSetup )
|
||||
{
|
||||
actionToSetup->setText( "Delete Well Path" );
|
||||
actionToSetup->setIcon( QIcon( ":/Erase.svg" ) );
|
||||
actionToSetup->setShortcut( Qt::Key_Delete );
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user