Replace GPLv2+ references with GPLv3+.
[pulseview.git] / pv / dialogs / about.cpp
index 9195b83bb56d67cf56022fb4c207ae2a00e54de8..fc206551238bbfd7ab6b73896725bf73cb1aa22e 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-extern "C" {
+#ifdef ENABLE_SIGROKDECODE
 #include <sigrokdecode.h>
-}
+#endif
 
 #include <QTextDocument>
 
 #include "about.h"
 #include <ui_about.h>
 
-extern "C" {
 /* __STDC_FORMAT_MACROS is required for PRIu64 and friends (in C++). */
 #define __STDC_FORMAT_MACROS
 #include <glib.h>
 #include <libsigrok/libsigrok.h>
-}
+
 
 namespace pv {
 namespace dialogs {
@@ -44,7 +43,11 @@ About::About(QWidget *parent) :
        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);
@@ -53,8 +56,9 @@ About::About(QWidget *parent) :
        ui->versionInfo->setText(tr("%1 %2<br />%3<br /><a href=\"%4\">%4</a>")
                                 .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("<table>");
 
@@ -89,6 +93,7 @@ About::About(QWidget *parent) :
                        .arg(QString(outputs[i]->description)));
        }
 
+#ifdef ENABLE_SIGROKDECODE
        s.append("<tr><td colspan=\"2\"><b>" +
                tr("Supported protocol decoders:") +
                "</b></td></tr>");
@@ -98,6 +103,7 @@ About::About(QWidget *parent) :
                         .arg(QString(dec->id))
                         .arg(QString(dec->longname)));
        }
+#endif
 
        s.append("</table>");