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

Method selectedXLSXRegionNames

src/frontend/datasources/XLSXOptionsWidget.cpp:171–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171QStringList XLSXOptionsWidget::selectedXLSXRegionNames() const {
172 const auto& items = ui.twDataRegions->selectedItems();
173 DEBUG(Q_FUNC_INFO << ", selected items = " << items.size())
174
175 QStringList names;
176 for (const auto* item : items) {
177 if (item->parent()) { // child of sheet
178 const auto sheetName = item->parent()->text(0);
179 // DEBUG(Q_FUNC_INFO << ", name = " << STDSTRING(sheetName))
180 names.push_back(QString(sheetName + QLatin1Char('!') + item->text(0)));
181 }
182 }
183
184 return names;
185}
186
187QVector<QStringList> XLSXOptionsWidget::previewString() const {
188 return m_previewString;

Callers

nothing calls this directly

Calls 5

selectedItemsMethod · 0.80
QStringClass · 0.50
sizeMethod · 0.45
parentMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected