MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / setRowWarning

Method setRowWarning

pj_widgets/src/LayerListView.cpp:385–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void LayerListView::setRowWarning(qint64 id, bool warn, const QString& reason) {
386 const auto it = items_.find(id);
387 if (it == items_.end()) {
388 return;
389 }
390 if (auto* row = qobject_cast<LayerRowWidget*>(list_->itemWidget(it->second))) {
391 row->setWarningState(warn, reason);
392 it->second->setToolTip(row->effectiveToolTip());
393 }
394}
395
396void LayerListView::setCurrentId(qint64 id) {
397 const auto it = items_.find(id);

Callers 5

TESTFunction · 0.80
bindDockMethod · 0.80
rebuildLayerListMethod · 0.80
onLayerAddedMethod · 0.80
onLayerWarningChangedMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64