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

Method removeRow

pj_widgets/src/LayerListView.cpp:332–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void LayerListView::removeRow(qint64 id) {
333 auto it = items_.find(id);
334 if (it == items_.end()) {
335 return;
336 }
337 QListWidgetItem* item = it->second;
338 const int row = list_->row(item);
339 if (QWidget* widget = list_->itemWidget(item)) {
340 list_->removeItemWidget(item);
341 widget->hide();
342 widget->setParent(nullptr);
343 widget->deleteLater();
344 }
345 delete list_->takeItem(row);
346 items_.erase(it);
347 updateMinimumHeight();
348}
349
350void LayerListView::clearRows() {
351 detachItemWidgets(list_);

Callers 4

clearMethod · 0.80
TESTFunction · 0.80
bindDockMethod · 0.80
onLayerRemovedMethod · 0.80

Calls 4

eraseMethod · 0.80
findMethod · 0.45
endMethod · 0.45
hideMethod · 0.45

Tested by 1

TESTFunction · 0.64