[Refactor] refactor function that forms human readable text out of a timeoffset

This commit is contained in:
Jonas Schnelli
2016-07-19 15:22:01 +02:00
committed by lateminer
parent afbca142d1
commit fbf2fff41f
3 changed files with 39 additions and 24 deletions

View File

@@ -211,6 +211,8 @@ namespace GUIUtil
/* Format a CNodeCombinedStats.nTimeOffset into a user-readable string. */
QString formatTimeOffset(int64_t nTimeOffset);
QString formateNiceTimeOffset(qint64 secs);
#if defined(Q_OS_MAC) && QT_VERSION >= 0x050000
// workaround for Qt OSX Bug:
// https://bugreports.qt-project.org/browse/QTBUG-15631