MCPcopy Create free account
hub / github.com/KDE/okular / writeEmbeddedFile

Function writeEmbeddedFile

gui/guiutils.cpp:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void writeEmbeddedFile(Okular::EmbeddedFile *ef, QWidget *parent, QFile &target)
211{
212 if (!target.open(QIODevice::WriteOnly)) {
213 KMessageBox::error(parent, i18n("Could not open \"%1\" for writing. File was not saved.", target.fileName()));
214 return;
215 }
216 target.write(ef->data());
217 target.close();
218}
219
220Okular::Movie *renditionMovieFromScreenAnnotation(const Okular::ScreenAnnotation *annotation)
221{

Callers 2

saveEmbeddedFileFunction · 0.85
viewFileMethod · 0.85

Calls 4

openMethod · 0.45
fileNameMethod · 0.45
dataMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected