| 225 | } |
| 226 | |
| 227 | void PathMappingsWidget::deletePath() |
| 228 | { |
| 229 | const auto selectedRows = m_pathMappingTable->selectionModel()->selectedRows(); |
| 230 | for (const QModelIndex& i : selectedRows) { |
| 231 | m_pathMappingTable->model()->removeRow(i.row(), i.parent()); |
| 232 | } |
| 233 | } |
| 234 | void PathMappingsWidget::loadFromConfiguration(const KConfigGroup& cfg) |
| 235 | { |
| 236 | static_cast<PathMappingModel*>(m_pathMappingTable->model())->loadFromConfiguration(cfg); |