MCPcopy Create free account
hub / github.com/QNapi/qnapi / movieFPSSelectClicked

Method movieFPSSelectClicked

gui/src/forms/frmconvert.cpp:169–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void 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
182Maybe<QString> frmConvert::determineMovieFPS(const QString &movieFilePath) {
183 QSharedPointer<const MovieInfoProvider> mip = LibQNapi::movieInfoProvider();

Callers

nothing calls this directly

Calls 2

selectFileMethod · 0.80
selectedFilesMethod · 0.80

Tested by

no test coverage detected