mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7380 Correlation Plot : Use complete summary address text when possible
This commit is contained in:
@@ -555,7 +555,7 @@ time_t RimAbstractCorrelationPlot::timeDiff( time_t lhs, time_t rhs )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimAbstractCorrelationPlot::selectedVarsText()
|
||||
QString RimAbstractCorrelationPlot::selectedQuantitiesText()
|
||||
{
|
||||
QString vectorNames;
|
||||
for ( const std::string& quantityName : getOrCreateSelectedCurveDefAnalyser()->m_quantityNames )
|
||||
@@ -571,6 +571,25 @@ QString RimAbstractCorrelationPlot::selectedVarsText()
|
||||
return vectorNames;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimAbstractCorrelationPlot::completeAddressText()
|
||||
{
|
||||
QString vectorName;
|
||||
if ( getOrCreateSelectedCurveDefAnalyser()->m_summaryAdresses.size() == 1 )
|
||||
{
|
||||
auto firstItem = getOrCreateSelectedCurveDefAnalyser()->m_summaryAdresses.begin();
|
||||
vectorName = QString::fromStdString( firstItem->uiText() );
|
||||
}
|
||||
else
|
||||
{
|
||||
vectorName = m_selectedVarsUiField;
|
||||
}
|
||||
|
||||
return vectorName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user