| 167 | } |
| 168 | |
| 169 | void frmConvert::movieFPSSelectClicked() { |
| 170 | QNapiOpenDialog openMovie(this, tr("Select a video file"), |
| 171 | QFileInfo(ui.leSrcSubFile->text()).path(), |
| 172 | QNapiOpenDialog::Movies); |
| 173 | if (openMovie.selectFile()) { |
| 174 | QString moviePath = openMovie.selectedFiles().first(); |
| 175 | Maybe<QString> maybeFPS = determineMovieFPS(moviePath); |
| 176 | if (maybeFPS) { |
| 177 | ui.cbMovieFPS->setCurrentText(maybeFPS.value()); |
| 178 | } |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | Maybe<QString> frmConvert::determineMovieFPS(const QString &movieFilePath) { |
| 183 | QSharedPointer<const MovieInfoProvider> mip = LibQNapi::movieInfoProvider(); |
nothing calls this directly
no test coverage detected