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

Method selectedOdsSheetNames

src/frontend/datasources/OdsOptionsWidget.cpp:145–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145QStringList OdsOptionsWidget::selectedOdsSheetNames() const {
146 const auto& items = ui.twDataRegions->selectedItems();
147 DEBUG(Q_FUNC_INFO << ", number of selected items = " << items.size())
148
149 QStringList names;
150 for (const auto* item : items) {
151 if (item->parent()) { // child of sheet
152 QString sheetName = item->parent()->text(0);
153 sheetName = sheetName.split(QLatin1Char('/')).last();
154 // DEBUG(Q_FUNC_INFO << ", sheet name = " << STDSTRING(sheetName))
155 names.push_back(QString(sheetName + QLatin1Char('!') + item->text(0)));
156 }
157 }
158
159 return names;
160}
161
162QVector<QStringList> OdsOptionsWidget::previewString() const {
163 return m_previewString;

Callers 1

importToMethod · 0.45

Calls 6

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

Tested by

no test coverage detected