From: Martin Ling Date: Fri, 12 May 2017 21:48:28 +0000 (+0100) Subject: Avoid wrapping driver names etc in about box. X-Git-Tag: pulseview-0.4.0~85 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d008cab11b7508601e793d47e53a87be9972aed1;p=pulseview.git Avoid wrapping driver names etc in about box. Fixes #111. --- diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index 15655a70..0104b7c9 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -180,6 +180,9 @@ QWidget *Settings::get_about_page(QWidget *parent) const shared_ptr context = device_manager_.context(); QString s; + + s.append(""); + s.append(""); /* Library info */ @@ -198,7 +201,7 @@ QWidget *Settings::get_about_page(QWidget *parent) const s.append(""); for (auto entry : context->drivers()) { - s.append(QString("") + s.append(QString("") .arg(QString::fromUtf8(entry.first.c_str()), QString::fromUtf8(entry.second->long_name().c_str()))); } @@ -206,7 +209,7 @@ QWidget *Settings::get_about_page(QWidget *parent) const s.append(""); for (auto entry : context->input_formats()) { - s.append(QString("") + s.append(QString("") .arg(QString::fromUtf8(entry.first.c_str()), QString::fromUtf8(entry.second->description().c_str()))); } @@ -214,7 +217,7 @@ QWidget *Settings::get_about_page(QWidget *parent) const s.append(""); for (auto entry : context->output_formats()) { - s.append(QString("") + s.append(QString("") .arg(QString::fromUtf8(entry.first.c_str()), QString::fromUtf8(entry.second->description().c_str()))); } @@ -226,7 +229,7 @@ QWidget *Settings::get_about_page(QWidget *parent) const sl = g_slist_sort(sl, sort_pds); for (const GSList *l = sl; l; l = l->next) { dec = (struct srd_decoder *)l->data; - s.append(QString("") + s.append(QString("") .arg(QString::fromUtf8(dec->id), QString::fromUtf8(dec->longname))); }
" + tr("Supported hardware drivers:") + "
%1%2
%1%2
" + tr("Supported input formats:") + "
%1%2
%1%2
" + tr("Supported output formats:") + "
%1%2
%1%2
%1%2
%1%2