X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdialogs%2Fabout.cpp;h=c14a8fea7d0f487cb376882d18baa595b384fee3;hb=8eb9d311acb7ca084b588ff20a40b145f7a8b0d5;hp=a7778549b3438c47ab493bcb00f2516a5f9b6fae;hpb=acda14b82957d9a848a5083df6f9b98d05c29fba;p=pulseview.git diff --git a/pv/dialogs/about.cpp b/pv/dialogs/about.cpp index a7778549..c14a8fea 100644 --- a/pv/dialogs/about.cpp +++ b/pv/dialogs/about.cpp @@ -18,21 +18,18 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern "C" { #include -} #include #include "about.h" #include -extern "C" { /* __STDC_FORMAT_MACROS is required for PRIu64 and friends (in C++). */ #define __STDC_FORMAT_MACROS #include #include -} + namespace pv { namespace dialogs { @@ -41,7 +38,6 @@ About::About(QWidget *parent) : QDialog(parent), ui(new Ui::About) { - GSList *l; struct sr_dev_driver **drivers; struct sr_input_format **inputs; struct sr_output_format **outputs; @@ -56,6 +52,7 @@ About::About(QWidget *parent) : .arg(QApplication::applicationVersion()) .arg(tr("GNU GPL, version 2 or later")) .arg(QApplication::organizationDomain())); + ui->versionInfo->setOpenExternalLinks(true); s.append(""); @@ -93,7 +90,7 @@ About::About(QWidget *parent) : s.append(""); - for (l = srd_decoder_list(); l; l = l->next) { + for (const GSList *l = srd_decoder_list(); l; l = l->next) { dec = (struct srd_decoder *)l->data; s.append(QString("") .arg(QString(dec->id))
" + tr("Supported protocol decoders:") + "
%1%2