diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-11-09 06:43:38 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-11-09 16:21:31 -0800 |
commit | bcabe6ec9f255b1c789cbcbef820e702489c7254 (patch) | |
tree | 20921678351849b95b0fc74e53d95bf716b93b74 /core/qthelper.cpp | |
parent | 76f595049b6fce9818cd0ad14c4f73c10691642f (diff) | |
download | subsurface-bcabe6ec9f255b1c789cbcbef820e702489c7254.tar.gz |
Add details about key libraries when showing version
Also fixed a spelling error and apparently some whitespace issue.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index b7db56a20..628fffa97 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -940,7 +940,7 @@ QString get_dive_duration_string(timestamp_t when, QString hoursText, QString mi .arg(secs).arg(secondsText); } else if (isFreeDive) { // Mixed display (hh:mm / mm only) and freedive < 1h and we have no unit for minutes - // --> Prefix duration with "0:" --> "0:05:35" + // --> Prefix duration with "0:" --> "0:05:35" if (separator == ":") displayTime = QString("%1%2%3%4%5%6").arg(hrs).arg(separator) .arg(fullmins, 2, 10, QChar('0')).arg(separator) .arg(secs, 2, 10, QChar('0')).arg(hoursText); @@ -1728,3 +1728,8 @@ extern "C" void cache_insert(int tissue, int timestep, enum inertgas inertgas, d ++key; factor_cache.insert(key, value); } + +extern "C" void print_qt_versions() +{ + printf("%s\n", QStringLiteral("built with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion()).toUtf8().data()); +} |