X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdialogs%2Fabout.cpp;h=20a02993b59cafa1360ea227e7f0de032b9c241f;hp=5517beb3225273330c66214e40dc115aba62f110;hb=db8a1b5c7e7cc3663fa8582749db289383c68313;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 diff --git a/pv/dialogs/about.cpp b/pv/dialogs/about.cpp index 5517beb3..20a02993 100644 --- a/pv/dialogs/about.cpp +++ b/pv/dialogs/about.cpp @@ -27,7 +27,7 @@ #include "about.hpp" #include -#include +#include using std::shared_ptr; using sigrok::Context; @@ -76,6 +76,15 @@ About::About(shared_ptr context, QWidget *parent) : .arg(QString::fromUtf8(entry.second->description().c_str()))); } + s.append("" + + tr("Supported output formats:") + + ""); + for (auto entry : context->output_formats()) { + s.append(QString("%1%2") + .arg(QString::fromUtf8(entry.first.c_str())) + .arg(QString::fromUtf8(entry.second->description().c_str()))); + } + #ifdef ENABLE_DECODE s.append("" + tr("Supported protocol decoders:") + @@ -90,9 +99,9 @@ About::About(shared_ptr context, QWidget *parent) : s.append(""); - supportedDoc.reset(new QTextDocument(this)); + supportedDoc = new QTextDocument(this); supportedDoc->setHtml(s); - ui->supportList->setDocument(supportedDoc.get()); + ui->supportList->setDocument(supportedDoc); } About::~About()