mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Further refactoring
This commit is contained in:
@@ -487,6 +487,19 @@ void RimWellLogTrack::updateYZoom()
|
||||
m_plotWidget->setAxisRange( QwtPlot::yLeft, m_visibleYRangeMin(), m_visibleYRangeMax() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogTrack::doRemoveFromCollection()
|
||||
{
|
||||
RimMultiPlotWindow* multiPlot = nullptr;
|
||||
this->firstAncestorOrThisOfType( multiPlot );
|
||||
if ( multiPlot )
|
||||
{
|
||||
multiPlot->removePlot( this );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -494,6 +507,8 @@ void RimWellLogTrack::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue )
|
||||
{
|
||||
RimPlot::fieldChangedByUi( changedField, oldValue, newValue );
|
||||
|
||||
if ( changedField == &m_showWindow )
|
||||
{
|
||||
if ( m_plotWidget )
|
||||
@@ -716,7 +731,7 @@ void RimWellLogTrack::updateXAxisAndGridTickIntervals()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogTrack::updateAllLegendItems()
|
||||
void RimWellLogTrack::updateLegend()
|
||||
{
|
||||
reattachAllCurves();
|
||||
if ( m_plotWidget )
|
||||
@@ -1087,7 +1102,7 @@ void RimWellLogTrack::onLoadDataAndUpdate()
|
||||
m_explicitTickIntervals.uiCapability()->setUiReadOnly( emptyRange );
|
||||
m_xAxisGridVisibility.uiCapability()->setUiReadOnly( emptyRange );
|
||||
|
||||
updateAllLegendItems();
|
||||
updateLegend();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user