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

Method saveRecentFileInfo

src/PDFDocumentWindow.cpp:451–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451void PDFDocumentWindow::saveRecentFileInfo()
452{
453 QMap<QString,QVariant> fileProperties;
454 fileProperties.insert(QString::fromLatin1("path"), curFile);
455 fileProperties.insert(QString::fromLatin1("geometry"), saveGeometry());
456 fileProperties.insert(QString::fromLatin1("state"), saveState(kPDFWindowStateVersion));
457 fileProperties.insert(QString::fromLatin1("pdfPageMode"), pdfWidget->pageMode());
458 TWApp::instance()->addToRecentFiles(fileProperties);
459}
460
461QString PDFDocumentWindow::getMainSourceFilename() const
462{

Callers

nothing calls this directly

Calls 1

addToRecentFilesMethod · 0.80

Tested by

no test coverage detected