From: Gerhard Sittig Date: Sun, 16 Apr 2017 19:29:27 +0000 (+0200) Subject: Settings: About: add sigrok internal libraries to version list X-Git-Tag: pulseview-0.4.0~100 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6c34883054aac5036d09a30424021de5182b8944;p=pulseview.git Settings: About: add sigrok internal libraries to version list Add version information for libsigrok and libsigrokdecode (when enabled) to the list of used libraries in the "About" page. --- diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index e221e562..32b1c207 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -176,6 +176,12 @@ QWidget *Settings::get_about_page(QWidget *parent) const tr("Used libraries:") + ""); 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())); +#ifdef ENABLE_DECODE + s.append(QString("%1%2 (lib version %3)") + .arg(QString("libsigrokdecode"), srd_package_version_string_get(), srd_lib_version_string_get())); +#endif /* Set up the supported field */ s.append("" +