MCPcopy Create free account
hub / github.com/KDE/labplot / selectedNames

Method selectedNames

src/frontend/datasources/ROOTOptionsWidget.cpp:159–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159const 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
178QVector<QStringList> ROOTOptionsWidget::columns() const {
179 QVector<QStringList> cols;

Callers 5

selectedObjectMethod · 0.45
selectedHDF5NamesMethod · 0.45
selectedNetCDFNamesMethod · 0.45
selectedMatioNamesMethod · 0.45
selectedROOTNamesMethod · 0.45

Calls 3

selectedItemsMethod · 0.80
textMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected