QMenu* default_menu = Trace::create_view_context_menu(parent, click_pos);
if (default_menu) {
- for (QAction *action : default_menu->actions()) {
+ for (QAction *action : default_menu->actions()) { // clazy:exclude=range-loop
menu->addAction(action);
if (action->parent() == default_menu)
action->setParent(menu);
const vector<DecodeChannel> channels = decode_signal_->get_channels();
// Add the channels
- for (DecodeChannel ch : channels) {
+ for (const DecodeChannel& ch : channels) {
// Ignore channels not part of the decoder we create the form for
if (ch.decoder_ != dec)
continue;
}
QMessageBox msg(owner_->view());
- msg.setText(tr("Error"));
- msg.setInformativeText(tr("File %1 could not be written to.").arg(file_name));
+ msg.setText(tr("Error") + "\n\n" + tr("File %1 could not be written to.").arg(file_name));
msg.setStandardButtons(QMessageBox::Ok);
msg.setIcon(QMessageBox::Warning);
msg.exec();