Use template function

This commit is contained in:
Magne Sjaastad 2024-04-01 17:19:33 +02:00
parent d0a5770626
commit 94786c0760
3 changed files with 6 additions and 3 deletions

View File

@ -34,6 +34,7 @@
#include "RiuMatrixPlotWidget.h" #include "RiuMatrixPlotWidget.h"
#include "cafPdmSetFieldValue.h"
#include "cafPdmUiComboBoxEditor.h" #include "cafPdmUiComboBoxEditor.h"
#include "cafPdmUiPushButtonEditor.h" #include "cafPdmUiPushButtonEditor.h"
#include "cafPdmUiToolButtonEditor.h" #include "cafPdmUiToolButtonEditor.h"
@ -767,5 +768,5 @@ void RimSummaryTable::setExcludedRowsUiSelectionsFromTableData()
newSelections.push_back( categoryName ); newSelections.push_back( categoryName );
} }
} }
m_excludedRowsUiField.setValueWithFieldChanged( newSelections ); caf::setValueWithFieldChanged( &m_excludedRowsUiField, newSelections );
} }

View File

@ -44,6 +44,7 @@
#include "RimWellPath.h" #include "RimWellPath.h"
#include "RimWellPathCollection.h" #include "RimWellPathCollection.h"
#include "cafPdmSetFieldValue.h"
#include "cafPdmUiCheckBoxEditor.h" #include "cafPdmUiCheckBoxEditor.h"
#include "cafPdmUiCheckBoxTristateEditor.h" #include "cafPdmUiCheckBoxTristateEditor.h"
#include "cafPdmUiComboBoxEditor.h" #include "cafPdmUiComboBoxEditor.h"
@ -1180,7 +1181,7 @@ void RimWellLogCurveCommonDataSource::selectWell( QString wellName )
std::set<QString> sortedWellNames = eclipseCase->sortedSimWellNames(); std::set<QString> sortedWellNames = eclipseCase->sortedSimWellNames();
if ( std::count( sortedWellNames.begin(), sortedWellNames.end(), wellName ) > 0 ) if ( std::count( sortedWellNames.begin(), sortedWellNames.end(), wellName ) > 0 )
{ {
m_simWellName.setValueWithFieldChanged( wellName ); caf::setValueWithFieldChanged( &m_simWellName, wellName );
} }
} }
} }

View File

@ -30,6 +30,7 @@
#include "cafPdmFieldScriptingCapability.h" #include "cafPdmFieldScriptingCapability.h"
#include "cafPdmFieldScriptingCapabilityCvfVec3d.h" #include "cafPdmFieldScriptingCapabilityCvfVec3d.h"
#include "cafPdmObjectScriptingCapability.h" #include "cafPdmObjectScriptingCapability.h"
#include "cafPdmSetFieldValue.h"
#include "cafPdmUiCheckBoxEditor.h" #include "cafPdmUiCheckBoxEditor.h"
#include "cafPdmUiLineEditor.h" #include "cafPdmUiLineEditor.h"
@ -210,7 +211,7 @@ void RimWellPathTarget::setDerivedTangent( double azimuthRadians, double inclina
void RimWellPathTarget::updateFrom3DManipulator( const cvf::Vec3d& pointXYD ) void RimWellPathTarget::updateFrom3DManipulator( const cvf::Vec3d& pointXYD )
{ {
enableFullUpdate( false ); enableFullUpdate( false );
m_targetPointXYD.setValueWithFieldChanged( pointXYD ); caf::setValueWithFieldChanged( &m_targetPointXYD, pointXYD );
enableFullUpdate( true ); enableFullUpdate( true );
} }