#5837 Well Measurements : Create new well measurement curves

This commit is contained in:
Magne Sjaastad
2020-04-27 21:31:56 +02:00
parent 34803b76be
commit eb46552e60
5 changed files with 131 additions and 6 deletions

View File

@@ -260,7 +260,7 @@ QList<caf::PdmOptionItemInfo>
m_wellPath->firstAncestorOrThisOfTypeAsserted( wellPathCollection );
}
std::set<QString> names;
std::set<QString> kindNames;
if ( wellPathCollection )
{
@@ -269,14 +269,16 @@ QList<caf::PdmOptionItemInfo>
{
if ( measurement->wellName() == m_wellPath->name() )
{
names.insert( measurement->kind() );
kindNames.insert( measurement->kind() );
}
}
}
for ( const auto& kind : names )
{
options.push_back( caf::PdmOptionItemInfo( kind, kind ) );
}
options.push_back( caf::PdmOptionItemInfo( "None", "None" ) );
for ( const auto& kind : kindNames )
{
options.push_back( caf::PdmOptionItemInfo( kind, kind ) );
}
}