X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdialogs%2Fabout.cpp;h=fc206551238bbfd7ab6b73896725bf73cb1aa22e;hb=0ec7aba5edea629f9b5b87c18b6511dfd6479470;hp=a7778549b3438c47ab493bcb00f2516a5f9b6fae;hpb=acda14b82957d9a848a5083df6f9b98d05c29fba;p=pulseview.git diff --git a/pv/dialogs/about.cpp b/pv/dialogs/about.cpp index a777854..fc20655 100644 --- a/pv/dialogs/about.cpp +++ b/pv/dialogs/about.cpp @@ -18,21 +18,20 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern "C" { +#ifdef ENABLE_SIGROKDECODE #include -} +#endif #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,11 +40,14 @@ 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; + +#ifdef ENABLE_SIGROKDECODE struct srd_decoder *dec; +#endif + QString s; ui->setupUi(this); @@ -54,8 +56,9 @@ About::About(QWidget *parent) : ui->versionInfo->setText(tr("%1 %2
%3
%4") .arg(QApplication::applicationName()) .arg(QApplication::applicationVersion()) - .arg(tr("GNU GPL, version 2 or later")) + .arg(tr("GNU GPL, version 3 or later")) .arg(QApplication::organizationDomain())); + ui->versionInfo->setOpenExternalLinks(true); s.append(""); @@ -90,15 +93,17 @@ About::About(QWidget *parent) : .arg(QString(outputs[i]->description))); } +#ifdef ENABLE_SIGROKDECODE 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)) .arg(QString(dec->longname))); } +#endif s.append("
" + tr("Supported protocol decoders:") + "
%1%2
");