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

Method addCatalogItems

pj_widgets/src/CurveTreeView.cpp:445–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445void CurveTreeView::addCatalogItems(const std::vector<CurvePath>& paths) {
446 if (paths.empty()) {
447 return;
448 }
449 const bool updates_were_enabled = updatesEnabled();
450 setUpdatesEnabled(false);
451 for (const CurvePath& path : paths) {
452 addCatalogItem(path, SortMode::kDeferred);
453 }
454 sortTree();
455 setUpdatesEnabled(updates_were_enabled);
456 reapplyFilter();
457}
458
459void CurveTreeView::addCatalogItem(const CurvePath& path, SortMode sort_mode) {
460 const QString tree_path = treePathFromCurvePath(path);

Callers 2

TESTFunction · 0.80
addCatalogItemsFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by 1

TESTFunction · 0.64