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

Method treePathFromCurvePath

pj_widgets/src/CurveTreeView.cpp:412–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412QString CurveTreeView::treePathFromCurvePath(const CurvePath& path) const {
413 QString tree_path = path.dataset;
414 const QString topic = normalizedPathSegment(path.topic);
415 const QString field = normalizedPathSegment(path.field);
416 if (!topic.isEmpty()) {
417 tree_path += QStringLiteral("/") + topic;
418 }
419 if (!field.isEmpty()) {
420 tree_path += QStringLiteral("/") + field;
421 }
422 return tree_path;
423}
424
425void CurveTreeView::addCurve(const CurvePath& path) {
426 addCatalogItem(

Callers

nothing calls this directly

Calls 2

normalizedPathSegmentFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected