mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4323 Avoid time step legend showing up unexpectedly in grid cross plots
This commit is contained in:
parent
25d5120190
commit
1caed321b0
@ -58,6 +58,6 @@ void RicCreateGridCrossPlotDataSetFeature::onActionTriggered(bool isChecked)
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RicCreateGridCrossPlotDataSetFeature::setupActionLook(QAction* actionToSetup)
|
void RicCreateGridCrossPlotDataSetFeature::setupActionLook(QAction* actionToSetup)
|
||||||
{
|
{
|
||||||
actionToSetup->setText("New Data Set");
|
actionToSetup->setText("Create Data Set");
|
||||||
actionToSetup->setIcon(QIcon(":/WellLogCurve16x16.png"));
|
actionToSetup->setIcon(QIcon(":/WellLogCurve16x16.png"));
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ void RicCreateGridCrossPlotFeature::setupActionLook(QAction* actionToSetup)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
actionToSetup->setText("New Grid Cross Plot");
|
actionToSetup->setText("Create Grid Cross Plot");
|
||||||
}
|
}
|
||||||
actionToSetup->setIcon(QIcon(":/SummaryXPlotsLight16x16.png"));
|
actionToSetup->setIcon(QIcon(":/SummaryXPlotsLight16x16.png"));
|
||||||
}
|
}
|
||||||
|
@ -285,7 +285,8 @@ void RiuGridCrossQwtPlot::updateLegendLayout()
|
|||||||
|
|
||||||
for (RimGridCrossPlotDataSet* dataSet : crossPlot->dataSets())
|
for (RimGridCrossPlotDataSet* dataSet : crossPlot->dataSets())
|
||||||
{
|
{
|
||||||
if (!dataSet->isChecked() || !dataSet->legendConfig()->showLegend()) continue;
|
if (dataSet->isChecked() && dataSet->groupingEnabled() && dataSet->legendConfig()->showLegend())
|
||||||
|
{
|
||||||
|
|
||||||
auto pairIt = m_legendWidgets.find(dataSet);
|
auto pairIt = m_legendWidgets.find(dataSet);
|
||||||
if (pairIt != m_legendWidgets.end())
|
if (pairIt != m_legendWidgets.end())
|
||||||
@ -311,6 +312,7 @@ void RiuGridCrossQwtPlot::updateLegendLayout()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user