const int index = serial_devices_.currentIndex();
if (index >= 0 && index < serial_devices_.count() &&
serial_devices_.currentText() == serial_devices_.itemText(index))
- serial = serial_devices_.itemData(index).value<QString>();
+ serial = serial_devices_.itemData(index).toString();
else
serial = serial_devices_.currentText();
drvopts[ConfigKey::CONN] = Variant<ustring>::create(
QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetClosable);
QAbstractButton *close_btn =
- dock->findChildren<QAbstractButton*>
- ("qt_dockwidget_closebutton").front();
+ dock->findChildren<QAbstractButton*>("qt_dockwidget_closebutton")
+ .front(); // clazy:exclude=detaching-temporary
connect(close_btn, SIGNAL(clicked(bool)),
this, SLOT(on_view_close_clicked()));
// drops to zero. We must prevent this to keep the static
// widgets visible
for (QWidget *w : static_tab_widget_->findChildren<QWidget*>())
- w->setMinimumHeight(h);
+ w->setMinimumHeight(h); // clazy:exclude=range-loop
int margin = static_tab_widget_->layout()->contentsMargins().bottom();
static_tab_widget_->setMinimumHeight(h + 2 * margin);
paint_axis(p, pp, get_visual_y());
} else {
- Trace::paint_back(p, pp);
+ Signal::paint_back(p, pp);
paint_axis(p, pp, get_visual_y());
}
}
// 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);
+ action->setEnabled(false); // clazy:exclude=range-loop
form->addRow(tr("Trigger"), trigger_bar_);
}
void View::determine_if_header_was_shrunk()
{
- const int header_pane_width = splitter_->sizes().front();
+ const int header_pane_width =
+ splitter_->sizes().front(); // clazy:exclude=detaching-temporary
// Allow for a slight margin of error so that we also accept
// slight differences when e.g. a label name change increased
// splitter to the maximum allowed position.
int splitter_area_width = 0;
- for (int w : splitter_->sizes())
+ for (int w : splitter_->sizes()) // clazy:exclude=range-loop
splitter_area_width += w;
// Make sure the header has enough horizontal space to show all labels fully
class WellArray : public QWidget
{
Q_OBJECT
- Q_PROPERTY(int selectedColumn READ selectedColumn)
- Q_PROPERTY(int selectedRow READ selectedRow)
+ Q_PROPERTY(int selectedColumn READ selectedColumn) // clazy-exclude:property-without-notify
+ Q_PROPERTY(int selectedRow READ selectedRow) // clazy-exclude:property-without-notify
public:
WellArray(int rows, int cols, QWidget* parent = nullptr);