]> sigrok.org Git - pulseview.git/commitdiff
Settings: About: add sigrok internal libraries to version list
authorGerhard Sittig <redacted>
Sun, 16 Apr 2017 19:29:27 +0000 (21:29 +0200)
committerGerhard Sittig <redacted>
Sun, 16 Apr 2017 19:29:27 +0000 (21:29 +0200)
Add version information for libsigrok and libsigrokdecode (when enabled)
to the list of used libraries in the "About" page.

pv/dialogs/settings.cpp

index e221e5627c2b337c2dc797151a34947fa77844ee..32b1c207677979f32b285426bf5b9da9b395726a 100644 (file)
@@ -176,6 +176,12 @@ QWidget *Settings::get_about_page(QWidget *parent) const
                tr("Used libraries:") + "</b></td></tr>");
        s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
                .arg(QString("Qt"), qVersion()));
+       s.append(QString("<tr><td><i>%1</i></td><td>%2 (lib version %3)</td></tr>")
+               .arg(QString("libsigrok"), sr_package_version_string_get(), sr_lib_version_string_get()));
+#ifdef ENABLE_DECODE
+       s.append(QString("<tr><td><i>%1</i></td><td>%2 (lib version %3)</td></tr>")
+               .arg(QString("libsigrokdecode"), srd_package_version_string_get(), srd_lib_version_string_get()));
+#endif
 
        /* Set up the supported field */
        s.append("<tr><td colspan=\"2\"><b>" +