mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
Refactor: Move updateChannelsFromWellLogData to base class RimWellLog
This commit is contained in:
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 );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user