mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7453 StimPlanModel: Add pressure date to pressure table.
Also start using it in header and plot.
This commit is contained in:
committed by
Magne Sjaastad
parent
f051f009bc
commit
c1ff038642
@@ -176,6 +176,13 @@ void RimStimPlanModelCurve::performDataExtraction( bool* isUsingPseudoLength )
|
||||
QString RimStimPlanModelCurve::createCurveAutoName()
|
||||
{
|
||||
QString textWithLineFeed = caf::AppEnum<RiaDefines::CurveProperty>::uiText( m_curveProperty() ).trimmed();
|
||||
if ( m_curveProperty == RiaDefines::CurveProperty::PRESSURE )
|
||||
{
|
||||
// Append date for pressure
|
||||
QString pressureDate = m_stimPlanModel->pressureDate();
|
||||
if ( !pressureDate.isEmpty() ) return QString( "%1 (%2)" ).arg( textWithLineFeed ).arg( pressureDate );
|
||||
}
|
||||
|
||||
textWithLineFeed.replace( " ", "\n" );
|
||||
|
||||
return textWithLineFeed;
|
||||
|
||||
Reference in New Issue
Block a user