| 214 | } |
| 215 | |
| 216 | void FileSelectionWidget::onRemoveRequested() |
| 217 | { |
| 218 | if (ui->fileview->selectedItems().count() < 1) |
| 219 | { |
| 220 | return; |
| 221 | } |
| 222 | |
| 223 | QString path = currentDirectory().filePath(currentFile().value()); |
| 224 | |
| 225 | if (QFile::exists(path)) |
| 226 | { |
| 227 | QFile(path).remove(); |
| 228 | } |
| 229 | |
| 230 | enumerateFiles(); |
| 231 | } |
| 232 | |
| 233 | std::optional<QDir> FileSelectionWidget::bookmarkDirectory() const |
| 234 | { |
nothing calls this directly
no test coverage detected