| 157 | } |
| 158 | |
| 159 | const QStringList ROOTOptionsWidget::selectedNames() const { |
| 160 | QStringList names; |
| 161 | |
| 162 | for (QTreeWidgetItem* item : ui.twContent->selectedItems()) { |
| 163 | QString path; |
| 164 | while (item && item != histItem && item != treeItem) { |
| 165 | path.prepend(QLatin1Char('/') + item->text(0)); |
| 166 | item = item->parent(); |
| 167 | } |
| 168 | path[0] = QLatin1Char(':'); |
| 169 | if (item == histItem) |
| 170 | names << QStringLiteral("Hist") + path; |
| 171 | else if (item == treeItem) |
| 172 | names << QStringLiteral("Tree") + path; |
| 173 | } |
| 174 | |
| 175 | return names; |
| 176 | } |
| 177 | |
| 178 | QVector<QStringList> ROOTOptionsWidget::columns() const { |
| 179 | QVector<QStringList> cols; |
no test coverage detected