#4323 Avoid time step legend showing up unexpectedly in grid cross plots

This commit is contained in:
Gaute Lindkvist 2019-04-12 18:31:57 +02:00
parent 25d5120190
commit 1caed321b0
3 changed files with 22 additions and 20 deletions

View File

@ -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"));
} }

View File

@ -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"));
} }

View File

@ -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())
@ -312,6 +313,7 @@ void RiuGridCrossQwtPlot::updateLegendLayout()
} }
} }
} }
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///