MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / setCurrentFile

Method setCurrentFile

src/interface/FileSelectionWidget.cpp:51–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void FileSelectionWidget::setCurrentFile(const QString& path)
52{
53 if(path.isEmpty())
54 {
55 _currentFile = std::nullopt;
56 }
57 else
58 {
59 setCurrentDirectory(QFileInfo(path).absoluteDir().absolutePath());
60 _currentFile = path;
61 }
62
63 enumerateFiles();
64}
65
66std::optional<QString> FileSelectionWidget::currentFile() const
67{

Callers 4

determineVdcSelectionMethod · 0.80
determineIrsSelectionMethod · 0.80
setCurrentLiveprogMethod · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected