{
if (decoder_ && decoder_->name && row_ && row_->desc)
return QString("%1: %2")
- .arg(QString::fromUtf8(decoder_->name))
- .arg(QString::fromUtf8(row_->desc));
+ .arg(QString::fromUtf8(decoder_->name),
+ QString::fromUtf8(row_->desc));
if (decoder_ && decoder_->name)
return QString::fromUtf8(decoder_->name);
if (row_ && row_->desc)
/* 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
if (supported_device)
drivers_.addItem(QString("%1 (%2)").arg(
- driver->long_name().c_str()).arg(name.c_str()),
+ driver->long_name().c_str(), name.c_str()),
qVariantFromValue(driver));
}
}
serial_devices_.clear();
for (auto serial : device_manager_.context()->serials(driver))
serial_devices_.addItem(QString("%1 (%2)").arg(
- serial.first.c_str()).arg(serial.second.c_str()),
+ serial.first.c_str(), serial.second.c_str()),
QString::fromStdString(serial.first));
}
filter += "(*.*)";
else
filter += QString("(*.%1);;%2 (*.*)").arg(
- QString::fromStdString(join(exts, ", *."))).arg(
+ QString::fromStdString(join(exts, ", *.")),
tr("All Files"));
// Show the file dialog
const vector<string> exts = format->extensions();
const QString filter = exts.empty() ? "" :
tr("%1 files (*.%2)").arg(
- QString::fromStdString(format->description())).arg(
+ QString::fromStdString(format->description()),
QString::fromStdString(join(exts, ", *.")));
// Show the file dialog
connect(combo, SIGNAL(currentIndexChanged(int)),
this, SLOT(on_channel_selected(int)));
decoder_form->addRow(tr("<b>%1</b> (%2) *")
- .arg(QString::fromUtf8(pdch->name))
- .arg(QString::fromUtf8(pdch->desc)), combo);
+ .arg(QString::fromUtf8(pdch->name),
+ QString::fromUtf8(pdch->desc)), combo);
const ChannelSelector s = {combo, dec, pdch};
channel_selectors_.push_back(s);
connect(combo, SIGNAL(currentIndexChanged(int)),
this, SLOT(on_channel_selected(int)));
decoder_form->addRow(tr("<b>%1</b> (%2)")
- .arg(QString::fromUtf8(pdch->name))
- .arg(QString::fromUtf8(pdch->desc)), combo);
+ .arg(QString::fromUtf8(pdch->name),
+ QString::fromUtf8(pdch->desc)), combo);
const ChannelSelector s = {combo, dec, pdch};
channel_selectors_.push_back(s);