Skip to content

Commit

Permalink
Use template function
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Apr 1, 2024
1 parent d0a5770 commit 94786c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

#include "RiuMatrixPlotWidget.h"

#include "cafPdmSetFieldValue.h"
#include "cafPdmUiComboBoxEditor.h"
#include "cafPdmUiPushButtonEditor.h"
#include "cafPdmUiToolButtonEditor.h"
Expand Down Expand Up @@ -767,5 +768,5 @@ void RimSummaryTable::setExcludedRowsUiSelectionsFromTableData()
newSelections.push_back( categoryName );
}
}
m_excludedRowsUiField.setValueWithFieldChanged( newSelections );
caf::setValueWithFieldChanged( &m_excludedRowsUiField, newSelections );
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "RimWellPath.h"
#include "RimWellPathCollection.h"

#include "cafPdmSetFieldValue.h"
#include "cafPdmUiCheckBoxEditor.h"
#include "cafPdmUiCheckBoxTristateEditor.h"
#include "cafPdmUiComboBoxEditor.h"
Expand Down Expand Up @@ -1180,7 +1181,7 @@ void RimWellLogCurveCommonDataSource::selectWell( QString wellName )
std::set<QString> sortedWellNames = eclipseCase->sortedSimWellNames();
if ( std::count( sortedWellNames.begin(), sortedWellNames.end(), wellName ) > 0 )
{
m_simWellName.setValueWithFieldChanged( wellName );
caf::setValueWithFieldChanged( &m_simWellName, wellName );
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "cafPdmFieldScriptingCapability.h"
#include "cafPdmFieldScriptingCapabilityCvfVec3d.h"
#include "cafPdmObjectScriptingCapability.h"
#include "cafPdmSetFieldValue.h"
#include "cafPdmUiCheckBoxEditor.h"
#include "cafPdmUiLineEditor.h"

Expand Down Expand Up @@ -210,7 +211,7 @@ void RimWellPathTarget::setDerivedTangent( double azimuthRadians, double inclina
void RimWellPathTarget::updateFrom3DManipulator( const cvf::Vec3d& pointXYD )
{
enableFullUpdate( false );
m_targetPointXYD.setValueWithFieldChanged( pointXYD );
caf::setValueWithFieldChanged( &m_targetPointXYD, pointXYD );
enableFullUpdate( true );
}

Expand Down

0 comments on commit 94786c0

Please sign in to comment.