| 49 | } |
| 50 | |
| 51 | void 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 | |
| 66 | std::optional<QString> FileSelectionWidget::currentFile() const |
| 67 | { |
no test coverage detected