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

Method onBookmarkRequested

src/interface/FileSelectionWidget.cpp:154–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void FileSelectionWidget::onBookmarkRequested()
155{
156 if(ui->fileview->selectedItems().count() < 1 || !bookmarkDirectory().has_value())
157 {
158 return;
159 }
160
161 QString src = currentDirectory().filePath(currentFile().value());
162 QString dest = bookmarkDirectory().value().filePath(currentFileName().value());
163
164 if (QFile::exists(dest))
165 {
166 QFile::remove(dest);
167 }
168
169 QFile::copy(src, dest);
170 enumerateFiles();
171
172 emit bookmarkAdded(dest);
173}
174
175void FileSelectionWidget::onFileSelectionChanged()
176{

Callers

nothing calls this directly

Calls 3

countMethod · 0.80
selectedItemsMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected