MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / onRemoveRequested

Method onRemoveRequested

src/interface/FileSelectionWidget.cpp:216–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void 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
233std::optional<QDir> FileSelectionWidget::bookmarkDirectory() const
234{

Callers

nothing calls this directly

Calls 4

countMethod · 0.80
selectedItemsMethod · 0.80
valueMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected