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

Function topLevelNames

pj_widgets/tests/curve_tree_view_test.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::vector<std::string> topLevelNames(const PJ::CurveTreeView& view) {
36 std::vector<std::string> names;
37 names.reserve(static_cast<std::size_t>(view.topLevelItemCount()));
38 for (int i = 0; i < view.topLevelItemCount(); ++i) {
39 names.push_back(view.topLevelItem(i)->text(0).toStdString());
40 }
41 return names;
42}
43
44std::vector<std::string> childNames(const QTreeWidgetItem* item) {
45 std::vector<std::string> names;

Callers 1

TESTFunction · 0.85

Calls 2

reserveMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected