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

Method openNewlySignedFile

shell/shell.cpp:421–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421void Shell::openNewlySignedFile(const QString &path, int pageNumber)
422{
423 // for now, this function just applies the "replace current document"
424 // strategy for opening.
425 // Given signing is slightly closer to annotating and saving, the over
426 // all user experience should not be that different
427 // The fact that we get a different file out of saving is a bit of a
428 // implementation detail that shouldn't leak that much onto the users
429 QUrl url = QUrl::fromLocalFile(path);
430 url.setFragment(QStringLiteral("page=%1").arg(pageNumber));
431
432 const int activeTab = m_tabWidget->currentIndex();
433 KParts::ReadWritePart *const activePart = m_tabs[activeTab].part;
434 activePart->closeUrl(false);
435 activePart->openUrl(url);
436}
437
438bool Shell::canOpenDocs(int numDocs, int desktop)
439{

Callers

nothing calls this directly

Calls 2

closeUrlMethod · 0.45
openUrlMethod · 0.45

Tested by

no test coverage detected