| 169 | } |
| 170 | |
| 171 | QStringList 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 | |
| 187 | QVector<QStringList> XLSXOptionsWidget::previewString() const { |
| 188 | return m_previewString; |
nothing calls this directly
no test coverage detected