| 33 | } |
| 34 | |
| 35 | std::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 | |
| 44 | std::vector<std::string> childNames(const QTreeWidgetItem* item) { |
| 45 | std::vector<std::string> names; |