MCPcopy Create free account
hub / github.com/TeXworks/texworks / reloadDocument

Method reloadDocument

modules/QtPDF/src/PDFDocumentScene.cpp:337–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337void PDFDocumentScene::reloadDocument()
338{
339 // If the file referenced by the document no longer exists, do nothing
340 if(!QFile::exists(_doc->fileName()))
341 return;
342
343 _doc->reload();
344 reinitializeScene();
345 emit documentChanged(_doc.toWeakRef());
346}
347
348
349// Other

Callers 1

loadMethod · 0.80

Calls 2

fileNameMethod · 0.45
reloadMethod · 0.45

Tested by

no test coverage detected