#2365 Replace PdmField<QString> with PdmField<caf::FilePath> for file path fields

Convert 11 file/directory path fields from QString to caf::FilePath across
ProjectDataModel classes for type safety and consistent path handling.

Fields converted: RimCalcScript::absoluteFileName,
RimScriptCollection::directory, RimBinaryExportSettings::fileName,
RimExportInputSettings::fileName, RimFractureExportSettings::fileName,
RimReservoirCellResultsStorage::m_resultCacheFileName,
RimProcess::m_workDir, RimWellIASettings::m_baseDir,
RimPlotTemplateFileItem::m_absoluteFileName,
RimWellMeasurement::m_filePath, RimFileWellPath::m_filePath.
This commit is contained in:
Kristian Bendiksen committed 2026-03-31 08:46:52 +02:00
1 parent 394bc6c3df
commit cbbcbb650c
28 files changed
+87 -77

No files matched your search

@@ -101,7 +101,7 @@ void RicSaveEclipseResultAsInputPropertyExec::redo()
QString errMsg;
bool isOk =
RicEclipseCellResultToFileImpl::writeBinaryResultToTextFile( exportSettings.fileName,
RicEclipseCellResultToFileImpl::writeBinaryResultToTextFile( exportSettings.fileName().path(),
m_cellColors->reservoirView()->eclipseCase()->eclipseCaseData(),
timeStep,
m_cellColors,
@@ -113,7 +113,7 @@ void RicSaveEclipseResultAsInputPropertyExec::redo()
if ( !isOk )
{
QString fullError =
QString( "Failed to exported current result to %1. Error was: %2" ).arg( exportSettings.fileName ).arg( errMsg );
QString( "Failed to exported current result to %1. Error was: %2" ).arg( exportSettings.fileName().path() ).arg( errMsg );
RiaLogging::error( fullError );
}
}