From: Uwe Hermann Date: Fri, 26 May 2017 14:43:24 +0000 (+0200) Subject: About: Also show libsigrok libs and features. X-Git-Tag: pulseview-0.4.0~84 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6579ca9227e50f8a3acd1a5d5364752864d2e7fd;p=pulseview.git About: Also show libsigrok libs and features. This fixes parts of bug #912. --- diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index 0104b7c9..e8e102c2 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -17,6 +17,8 @@ * along with this program; if not, see . */ +#include + #include #include #include @@ -187,11 +189,33 @@ QWidget *Settings::get_about_page(QWidget *parent) const /* Library info */ s.append("" + - tr("Used libraries:") + ""); + 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())); + + GSList *l_orig = sr_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); + + char *host = sr_buildinfo_host_get(); + s.append(QString("- Host%1") + .arg(QString(host))); + g_free(host); + + char *scpi_backends = sr_buildinfo_scpi_backends_get(); + s.append(QString("- SCPI backends%1") + .arg(QString(scpi_backends))); + 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()));