| 173 | } |
| 174 | |
| 175 | void 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 | |
| 194 | void FileSelectionWidget::onRenameRequested() |
| 195 | { |
nothing calls this directly
no test coverage detected