mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed #6554 by moving setting the title of the Well Connection Factor legend to RimEclipseView::onUpdateLegens().
This commit is contained in:
@@ -29,23 +29,16 @@ CAF_PDM_SOURCE_INIT( RimVirtualPerforationResults, "RimVirtualPerforationResults
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimVirtualPerforationResults::RimVirtualPerforationResults()
|
||||
{
|
||||
// clang-format off
|
||||
CAF_PDM_InitObject( "Well Connection Factors", ":/WellCF16x16.png", "", "" );
|
||||
|
||||
QString connectionFactorUiName = "Well Connection Factors";
|
||||
CAF_PDM_InitField( &m_isActive, "ShowConnectionFactors", false, "", "", "", "" );
|
||||
CAF_PDM_InitField( &m_showClosedConnections, "ShowClosedConnections", true, "Show On Closed Connections", "", "", "" );
|
||||
CAF_PDM_InitField( &m_geometryScaleFactor, "GeometryScaleFactor", 2.0, "Geometry Scale Factor", "", "", "" );
|
||||
|
||||
CAF_PDM_InitObject(connectionFactorUiName, ":/WellCF16x16.png", "", "");
|
||||
|
||||
CAF_PDM_InitField(&m_isActive, "ShowConnectionFactors", false, "", "", "", "");
|
||||
CAF_PDM_InitField(&m_showClosedConnections, "ShowClosedConnections", true, "Show On Closed Connections", "", "", "");
|
||||
CAF_PDM_InitField(&m_geometryScaleFactor, "GeometryScaleFactor", 2.0, "Geometry Scale Factor", "", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_legendConfig, "LegendDefinition", "Color Legend", "", "", "");
|
||||
m_legendConfig.uiCapability()->setUiHidden(true);
|
||||
CAF_PDM_InitFieldNoDefault( &m_legendConfig, "LegendDefinition", "Color Legend", "", "", "" );
|
||||
m_legendConfig.uiCapability()->setUiHidden( true );
|
||||
|
||||
m_legendConfig = new RimRegularLegendConfig();
|
||||
m_legendConfig->setTitle(connectionFactorUiName);
|
||||
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user