Refactor: Move updateChannelsFromWellLogData to base class RimWellLog

This commit is contained in:
Kristian Bendiksen committed 2025-09-04 09:04:56 +02:00
1 parent 160cb71168
commit 9326da7965
6 files changed
+24 -37

No files matched your search

@@ -107,24 +107,6 @@ void RimImportedWellLog::setWellLogData( RimImportedWellLogData* wellLogData )
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimImportedWellLog::updateChannelsFromWellLogData( RigImportedWellLogData* wellLogData )
{
m_wellLogChannels.deleteChildren();
if ( !wellLogData ) return;
QStringList wellLogNames = wellLogData->wellLogChannelNames();
for ( int logIdx = 0; logIdx < wellLogNames.size(); logIdx++ )
{
RimWellLogChannel* wellLog = new RimWellLogChannel();
wellLog->setName( wellLogNames[logIdx] );
m_wellLogChannels.push_back( wellLog );
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------