* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-extern "C" {
#include <sigrokdecode.h>
-}
#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 {
QDialog(parent),
ui(new Ui::About)
{
- GSList *l;
struct sr_dev_driver **drivers;
struct sr_input_format **inputs;
struct sr_output_format **outputs;
.arg(QApplication::applicationVersion())
.arg(tr("GNU GPL, version 2 or later"))
.arg(QApplication::organizationDomain()));
+ ui->versionInfo->setOpenExternalLinks(true);
s.append("<table>");
s.append("<tr><td colspan=\"2\"><b>" +
tr("Supported protocol decoders:") +
"</b></td></tr>");
- 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("<tr><td><i>%1</i></td><td>%2</td></tr>")
.arg(QString(dec->id))