From: Uwe Hermann Date: Fri, 26 May 2017 16:36:33 +0000 (+0200) Subject: About: Also list glibmm/boost/libsigrokdecode version details. X-Git-Tag: pulseview-0.4.0~81 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0f5e2c7db1dc3e86ac741e8c1c89cce6202b43cc;p=pulseview.git About: Also list glibmm/boost/libsigrokdecode version details. This fixes parts of bug #912. --- diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index e8e102c2..5e2be818 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -17,7 +17,10 @@ * along with this program; if not, see . */ +#include "config.h" + #include +#include #include #include @@ -190,10 +193,18 @@ QWidget *Settings::get_about_page(QWidget *parent) const /* Library info */ s.append("" + tr("Libraries and features:") + ""); + s.append(QString("%1%2") .arg(QString("Qt"), qVersion())); - s.append(QString("%1%2 (lib version %3)") - .arg(QString("libsigrok"), sr_package_version_string_get(), sr_lib_version_string_get())); + s.append(QString("%1%2") + .arg(QString("glibmm"), PV_GLIBMM_VERSION)); + s.append(QString("%1%2") + .arg(QString("Boost"), BOOST_LIB_VERSION)); + + s.append(QString("%1%2/%3 (rt: %4/%5)") + .arg(QString("libsigrok"), SR_PACKAGE_VERSION_STRING, + SR_LIB_VERSION_STRING, sr_package_version_string_get(), + sr_lib_version_string_get())); GSList *l_orig = sr_buildinfo_libs_get(); for (GSList *l = l_orig; l; l = l->next) { @@ -217,8 +228,26 @@ QWidget *Settings::get_about_page(QWidget *parent) const g_free(scpi_backends); #ifdef ENABLE_DECODE - s.append(QString("%1%2 (lib version %3)") - .arg(QString("libsigrokdecode"), srd_package_version_string_get(), srd_lib_version_string_get())); + s.append(QString("%1%2/%3 (rt: %4/%5)") + .arg(QString("libsigrokdecode"), SRD_PACKAGE_VERSION_STRING, + SRD_LIB_VERSION_STRING, srd_package_version_string_get(), + srd_lib_version_string_get())); + + l_orig = srd_buildinfo_libs_get(); + for (GSList *l = l_orig; l; l = l->next) { + GSList *m = (GSList *)l->data; + const char *lib = (const char *)m->data; + const char *version = (const char *)m->next->data; + s.append(QString("- %1%2") + .arg(QString(lib), QString(version))); + g_slist_free_full(m, g_free); + } + g_slist_free(l_orig); + + host = srd_buildinfo_host_get(); + s.append(QString("- Host%1") + .arg(QString(host))); + g_free(host); #endif /* Set up the supported field */