X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdialogs%2Fabout.cpp;h=dbe7d9b809a43f76821e7314950b9d346f5f83db;hp=05daff8a2698c99b11c1e88c7dcb61292a9a5775;hb=b14db788ee3483eed195c1e73a1ab85ea8c41e47;hpb=e8d009288de28cb194bc7964f96677c2baf900c9 diff --git a/pv/dialogs/about.cpp b/pv/dialogs/about.cpp index 05daff8a..dbe7d9b8 100644 --- a/pv/dialogs/about.cpp +++ b/pv/dialogs/about.cpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #ifdef ENABLE_DECODE @@ -24,10 +23,10 @@ #include -#include "about.h" +#include "about.hpp" #include -#include +#include using std::shared_ptr; using sigrok::Context; @@ -49,10 +48,10 @@ About::About(shared_ptr context, QWidget *parent) : /* Setup the version field */ ui->versionInfo->setText(tr("%1 %2
%3
%4") - .arg(QApplication::applicationName()) - .arg(QApplication::applicationVersion()) - .arg(tr("GNU GPL, version 3 or later")) - .arg(QApplication::organizationDomain())); + .arg(QApplication::applicationName(), + QApplication::applicationVersion(), + tr("GNU GPL, version 3 or later"), + QApplication::organizationDomain())); ui->versionInfo->setOpenExternalLinks(true); s.append(""); @@ -63,8 +62,8 @@ About::About(shared_ptr context, QWidget *parent) : ""); for (auto entry : context->drivers()) { s.append(QString("") - .arg(QString::fromUtf8(entry.first.c_str())) - .arg(QString::fromUtf8(entry.second->long_name().c_str()))); + .arg(QString::fromUtf8(entry.first.c_str()), + QString::fromUtf8(entry.second->long_name().c_str()))); } s.append(""); for (auto entry : context->input_formats()) { s.append(QString("") - .arg(QString::fromUtf8(entry.first.c_str())) - .arg(QString::fromUtf8(entry.second->description().c_str()))); + .arg(QString::fromUtf8(entry.first.c_str()), + QString::fromUtf8(entry.second->description().c_str()))); + } + + s.append(""); + for (auto entry : context->output_formats()) { + s.append(QString("") + .arg(QString::fromUtf8(entry.first.c_str()), + QString::fromUtf8(entry.second->description().c_str()))); } #ifdef ENABLE_DECODE @@ -83,16 +91,16 @@ About::About(shared_ptr context, QWidget *parent) : for (const GSList *l = srd_decoder_list(); l; l = l->next) { dec = (struct srd_decoder *)l->data; s.append(QString("") - .arg(QString::fromUtf8(dec->id)) - .arg(QString::fromUtf8(dec->longname))); + .arg(QString::fromUtf8(dec->id), + QString::fromUtf8(dec->longname))); } #endif s.append("
%1%2
" + @@ -72,8 +71,17 @@ About::About(shared_ptr context, QWidget *parent) : "
%1%2
" + + tr("Supported output formats:") + + "
%1%2
%1%2
"); - supportedDoc.reset(new QTextDocument(this)); + supportedDoc = new QTextDocument(this); supportedDoc->setHtml(s); - ui->supportList->setDocument(supportedDoc.get()); + ui->supportList->setDocument(supportedDoc); } About::~About()