mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 07:03:25 -06:00
RimTools. Expose date format string
This commit is contained in:
parent
282d8ef080
commit
947d31bfcc
@ -290,7 +290,7 @@ QString RimTools::createTimeFormatStringFromDates(const std::vector<QDateTime>&
|
||||
}
|
||||
}
|
||||
|
||||
QString formatString = "dd.MMM yyyy";
|
||||
QString formatString = dateFormatString();
|
||||
if (hasHoursAndMinutesInTimesteps)
|
||||
{
|
||||
formatString += " - hh:mm";
|
||||
@ -306,3 +306,11 @@ QString RimTools::createTimeFormatStringFromDates(const std::vector<QDateTime>&
|
||||
|
||||
return formatString;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimTools::dateFormatString()
|
||||
{
|
||||
return "dd.MMM yyyy";
|
||||
}
|
||||
|
@ -45,4 +45,6 @@ public:
|
||||
static void caseOptionItems(QList<caf::PdmOptionItemInfo>* options);
|
||||
|
||||
static QString createTimeFormatStringFromDates(const std::vector<QDateTime>& dates);
|
||||
|
||||
static QString dateFormatString();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user