From 789e86480d9dd2b245845ac1327ee0cc71708942 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 27 Nov 2017 10:11:52 -0800 Subject: [PATCH] QML UI: add versions of key libraries to the log Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index a3f1b5730..650ebd480 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -132,7 +132,11 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), } #endif appendTextToLog("Starting " + getUserAgent()); - appendTextToLog(QStringLiteral("build with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion())); + appendTextToLog(QStringLiteral("built with libdivecomputer v%1").arg(dc_version(NULL))); + appendTextToLog(QStringLiteral("built with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion())); + int git_maj, git_min, git_rev; + git_libgit2_version(&git_maj, &git_min, &git_rev); + appendTextToLog(QStringLiteral("built with libgit2 %1.%2.%3").arg(git_maj).arg(git_min).arg(git_rev)); setStartPageText(tr("Starting...")); #if defined(BT_SUPPORT)