mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6649 Use color legend icon in drop down list.
Move the generation of the options list to RimTools to avoid duplication. This introduces color legend icons in RimWellLogTrack.
This commit is contained in:
committed by
Magne Sjaastad
parent
b529c11181
commit
63b889bbaa
@@ -38,6 +38,7 @@
|
||||
#include "RimIntersectionCollection.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimStimPlanColors.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimViewLinker.h"
|
||||
#include "RimWellMeasurementInView.h"
|
||||
#include "RimWellRftEnsembleCurveSet.h"
|
||||
@@ -1153,17 +1154,7 @@ QList<caf::PdmOptionItemInfo>
|
||||
}
|
||||
else if ( fieldNeedingOptions == &m_colorLegend )
|
||||
{
|
||||
RimProject* project = RimProject::current();
|
||||
RimColorLegendCollection* colorLegendCollection = project->colorLegendCollection();
|
||||
std::vector<RimColorLegend*> colorLegends = colorLegendCollection->allColorLegends();
|
||||
|
||||
for ( RimColorLegend* colorLegend : colorLegends )
|
||||
{
|
||||
options.push_back( caf::PdmOptionItemInfo( colorLegend->colorLegendName(),
|
||||
colorLegend,
|
||||
false,
|
||||
colorLegend->paletteIconProvider() ) );
|
||||
}
|
||||
RimTools::colorLegendOptionItems( &options );
|
||||
}
|
||||
else if ( fieldNeedingOptions == &m_rangeMode )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user