| 43 | } |
| 44 | |
| 45 | QMultiHash<QStringList, QVector<QStringList>> |
| 46 | findLeaves(QTreeWidgetItem* node, ROOTFilter* filter, const QString& fileName, const QStringList& path = QStringList{}) { |
| 47 | QMultiHash<QStringList, QVector<QStringList>> leaves; |
| 48 | if (node->childCount() > 0) { |
| 49 | for (int i = 0; i < node->childCount(); ++i) |
| 50 | leaves.unite(findLeaves(node->child(i), filter, fileName, path + QStringList(node->child(i)->text(0)))); |
| 51 | } else { |
| 52 | leaves.insert(path, filter->listLeaves(fileName, node->data(0, Qt::UserRole).toLongLong())); |
| 53 | } |
| 54 | return leaves; |
| 55 | } |
| 56 | |
| 57 | void ROOTOptionsWidget::updateContent(ROOTFilter* filter, const QString& fileName) { |
| 58 | DEBUG(Q_FUNC_INFO); |
no test coverage detected