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

Method selectedCatalogKeysRecursive

pj_widgets/src/CurveTreeView.cpp:616–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616std::vector<QString> CurveTreeView::selectedCatalogKeysRecursive() const {
617 std::vector<QString> keys;
618 std::function<void(QTreeWidgetItem*)> collect = [&](QTreeWidgetItem* item) {
619 const QString key = catalogKeyForItem(item);
620 if (!key.isEmpty() && !isValueOnlyItem(item)) {
621 keys.push_back(key);
622 }
623 if (isObjectTopicItem(item)) {
624 return;
625 }
626 for (int i = 0; i < item->childCount(); ++i) {
627 collect(item->child(i));
628 }
629 };
630 for (auto* item : selectedItems()) {
631 collect(item);
632 }
633 normalizeCurveNames(keys);
634 return keys;
635}
636
637void CurveTreeView::setValuesColumnHidden(bool hidden) {
638 setColumnHidden(kValueColumn, hidden);

Callers 2

TESTFunction · 0.80
onTrashClickedMethod · 0.80

Calls 6

catalogKeyForItemFunction · 0.85
isValueOnlyItemFunction · 0.85
isObjectTopicItemFunction · 0.85
collectFunction · 0.85
normalizeCurveNamesFunction · 0.85
isEmptyMethod · 0.45

Tested by 1

TESTFunction · 0.64