QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetClosable);
QAbstractButton *close_btn =
- dock->findChildren<QAbstractButton*>("qt_dockwidget_closebutton")
- .front(); // clazy:exclude=detaching-temporary
+ dock->findChildren<QAbstractButton*>("qt_dockwidget_closebutton") // clazy:exclude=detaching-temporary
+ .front();
connect(close_btn, SIGNAL(clicked(bool)),
this, SLOT(on_view_close_clicked()));
// When there are no more tabs, the height of the QTabWidget
// drops to zero. We must prevent this to keep the static
// widgets visible
- for (QWidget *w : static_tab_widget_->findChildren<QWidget*>())
- w->setMinimumHeight(h); // clazy:exclude=range-loop
+ for (QWidget *w : static_tab_widget_->findChildren<QWidget*>()) // clazy:exclude=range-loop
+ w->setMinimumHeight(h);
int margin = static_tab_widget_->layout()->contentsMargins().bottom();
static_tab_widget_->setMinimumHeight(h + 2 * margin);
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;
// Only allow triggers to be changed when we're stopped
if (session_.get_capture_state() != Session::Stopped)
- for (QAction* action : trigger_bar_->findChildren<QAction*>())
- action->setEnabled(false); // clazy:exclude=range-loop
+ for (QAction* action : trigger_bar_->findChildren<QAction*>()) // clazy:exclude=range-loop
+ action->setEnabled(false);
form->addRow(tr("Trigger"), trigger_bar_);
}
QMenu* default_menu = TraceTreeItem::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);