* 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 <http://www.gnu.org/licenses/>.
*/
#ifdef ENABLE_DECODE
/* Setup the version field */
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 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("<table>");
"</b></td></tr>");
for (auto entry : context->drivers()) {
s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
- .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("<tr><td colspan=\"2\"><b>" +
"</b></td></tr>");
for (auto entry : context->input_formats()) {
s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
- .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("<tr><td colspan=\"2\"><b>" +
"</b></td></tr>");
for (auto entry : context->output_formats()) {
s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
- .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())));
}
#ifdef ENABLE_DECODE
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::fromUtf8(dec->id))
- .arg(QString::fromUtf8(dec->longname)));
+ .arg(QString::fromUtf8(dec->id),
+ QString::fromUtf8(dec->longname)));
}
#endif
s.append("</table>");
- supportedDoc.reset(new QTextDocument(this));
+ supportedDoc = new QTextDocument(this);
supportedDoc->setHtml(s);
- ui->supportList->setDocument(supportedDoc.get());
+ ui->supportList->setDocument(supportedDoc);
}
About::~About()