| 335 | } |
| 336 | |
| 337 | void 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 |