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

Method canAddAnnotationsNatively

core/document.cpp:3565–3574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3563}
3564
3565bool DocumentPrivate::canAddAnnotationsNatively() const
3566{
3567 Okular::SaveInterface *iface = qobject_cast<Okular::SaveInterface *>(m_generator);
3568
3569 if (iface && iface->supportsOption(Okular::SaveInterface::SaveChanges) && iface->annotationProxy() && iface->annotationProxy()->supports(AnnotationProxy::Addition)) {
3570 return true;
3571 }
3572
3573 return false;
3574}
3575
3576bool DocumentPrivate::canModifyExternalAnnotations() const
3577{

Callers 2

canSaveChangesMethod · 0.80
saveDocumentArchiveMethod · 0.80

Calls 3

supportsOptionMethod · 0.80
annotationProxyMethod · 0.80
supportsMethod · 0.80

Tested by

no test coverage detected