| 410 | } |
| 411 | |
| 412 | QString 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 | |
| 425 | void CurveTreeView::addCurve(const CurvePath& path) { |
| 426 | addCatalogItem( |
nothing calls this directly
no test coverage detected