| 443 | } |
| 444 | |
| 445 | void 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 | |
| 459 | void CurveTreeView::addCatalogItem(const CurvePath& path, SortMode sort_mode) { |
| 460 | const QString tree_path = treePathFromCurvePath(path); |