summaryrefslogtreecommitdiffstats
path: root/core/qthelper.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-05-22 18:02:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-22 12:31:06 -0700
commitf63485b444bd8469d24c70f64f3097bed239c7a8 (patch)
tree4960697b8efbe14846c1180160e224d1d903d3b2 /core/qthelper.h
parent2ba2ea934aac45c6d8b3c6db920776fb2b29cc66 (diff)
downloadsubsurface-f63485b444bd8469d24c70f64f3097bed239c7a8.tar.gz
cleanup: move timestampToDateTime() to qthelper.cpp
Move this function from maintab.cpp to qthelper.cpp. Since the functionality was used in numerous places, use the helper function there as well. This removes a number of inconsistencies. For example, sometime setTimeSpec(Qt::UTC) was called, even though the QDateTime object was already created with that time spec. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qthelper.h')
-rw-r--r--core/qthelper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/qthelper.h b/core/qthelper.h
index 8cd31b29c..b0cab8b15 100644
--- a/core/qthelper.h
+++ b/core/qthelper.h
@@ -62,6 +62,7 @@ QString getSubsurfaceDataPath(QString folderToFind);
QString getPrintingTemplatePathUser();
QString getPrintingTemplatePathBundle();
int gettimezoneoffset(timestamp_t when = 0);
+QDateTime timestampToDateTime(timestamp_t when);
int parseDurationToSeconds(const QString &text);
int parseLengthToMm(const QString &text);
int parseTemperatureToMkelvin(const QString &text);