Minor issues when preparing user course

* Grid Cross Plot: Always show grouping icons with color
* Grid Cross Plot: Make sure the info box text content is updated
* Bump version to RC_05
This commit is contained in:
Magne Sjaastad
2022-09-14 16:10:52 +02:00
parent d7b29589a2
commit a0d0e48953
4 changed files with 13 additions and 5 deletions

View File

@@ -299,8 +299,8 @@ void RimGridCrossPlot::updateInfoBox()
new RiuDraggableOverlayFrame( m_plotWidget->getParentForOverlay(), m_plotWidget->overlayMargins() );
m_infoBox->setAnchorCorner( RiuDraggableOverlayFrame::AnchorCorner::TopRight );
RiuTextOverlayContentFrame* textFrame = new RiuTextOverlayContentFrame( m_infoBox );
textFrame->setText( generateInfoBoxText() );
m_infoBox->setContentFrame( textFrame );
m_infoBoxTextFrame = textFrame;
}
m_plotWidget->addOverlayFrame( m_infoBox );
}
@@ -314,6 +314,11 @@ void RimGridCrossPlot::updateInfoBox()
}
}
}
if ( m_infoBoxTextFrame )
{
m_infoBoxTextFrame->setText( generateInfoBoxText() );
}
}
//--------------------------------------------------------------------------------------------------
@@ -624,6 +629,7 @@ void RimGridCrossPlot::updateCurveNamesAndPlotTitle()
m_plotWidget->setPlotTitleEnabled( m_showPlotTitle && !isSubPlot() );
}
updateMdiWindowTitle();
updateInfoBox();
}
//--------------------------------------------------------------------------------------------------
@@ -739,6 +745,7 @@ void RimGridCrossPlot::setYAxisInverted( bool inverted )
//--------------------------------------------------------------------------------------------------
void RimGridCrossPlot::doUpdateLayout()
{
updateInfoBox();
updateLegend();
updatePlot();
}

View File

@@ -35,6 +35,7 @@ class RimGridCrossPlotDataSet;
class RiuDraggableOverlayFrame;
class RiuGridCrossQwtPlot;
class RimPlotCurve;
class RiuTextOverlayContentFrame;
class RimGridCrossPlotNameConfig : public RimNameConfig
{
@@ -159,6 +160,7 @@ private:
caf::PdmChildArrayField<RimGridCrossPlotDataSet*> m_crossPlotDataSets;
QPointer<RiuGridCrossQwtPlot> m_plotWidget;
QPointer<RiuDraggableOverlayFrame> m_infoBox;
QPointer<RiuGridCrossQwtPlot> m_plotWidget;
QPointer<RiuDraggableOverlayFrame> m_infoBox;
QPointer<RiuTextOverlayContentFrame> m_infoBoxTextFrame;
};

View File

@@ -1093,7 +1093,6 @@ void RimGridCrossPlotDataSet::updateLegendIcons()
for ( auto curve : m_crossPlotCurves )
{
curve->determineLegendIcon();
curve->setBlackAndWhiteLegendIcons( groupingEnabled() );
}
}

View File

@@ -5,7 +5,7 @@ set(RESINSIGHT_PATCH_VERSION 1)
# Opional text with no restrictions
#set(RESINSIGHT_VERSION_TEXT "-dev")
set(RESINSIGHT_VERSION_TEXT "-RC_04")
set(RESINSIGHT_VERSION_TEXT "-RC_05")
# Optional text
# Must be unique and increasing within one combination of major/minor/patch version