mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5001 Update plots on changes in RimWellMeasurement.
This commit is contained in:
parent
18c2350bdf
commit
ea534cace6
@ -17,6 +17,8 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
#include "RimWellMeasurement.h"
|
||||
|
||||
#include "RimProject.h"
|
||||
#include "RimWellMeasurementCollection.h"
|
||||
#include "RimWellPath.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimWellMeasurement, "WellMeasurement" );
|
||||
@ -161,6 +163,13 @@ void RimWellMeasurement::fieldChangedByUi( const caf::PdmFieldHandle* changedFie
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue )
|
||||
{
|
||||
RimProject* proj;
|
||||
this->firstAncestorOrThisOfTypeAsserted( proj );
|
||||
proj->scheduleCreateDisplayModelAndRedrawAllViews();
|
||||
|
||||
RimWellMeasurementCollection* wellMeasurementCollection;
|
||||
this->firstAncestorOrThisOfTypeAsserted( wellMeasurementCollection );
|
||||
wellMeasurementCollection->updateAllReferringTracks();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user