mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
RimTools. Expose date format string
This commit is contained in:
1 parent
282d8ef080
commit
947d31bfcc
2 files changed
+11
-1
No files matched your search
@@ -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();
|
||||
};
|
||||
Reference in new issue
Block a user