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

Method onFileSelectionChanged

src/interface/FileSelectionWidget.cpp:175–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void FileSelectionWidget::onFileSelectionChanged()
176{
177 if(ui->fileview->selectedItems().count() < 1)
178 {
179 setContextButtonsAvailable(false);
180 return;
181 }
182
183 setContextButtonsAvailable(true);
184
185 QString path = currentDirectory().filePath(ui->fileview->selectedItems().first()->text());
186
187 if (QFileInfo::exists(path) && QFileInfo(path).isFile())
188 {
189 _currentFile = path;
190 emit fileChanged(path);
191 }
192}
193
194void FileSelectionWidget::onRenameRequested()
195{

Callers

nothing calls this directly

Calls 3

countMethod · 0.80
selectedItemsMethod · 0.80
textMethod · 0.80

Tested by

no test coverage detected