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

Method canModifyExternalAnnotations

core/document.cpp:3576–3585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3574}
3575
3576bool DocumentPrivate::canModifyExternalAnnotations() const
3577{
3578 Okular::SaveInterface *iface = qobject_cast<Okular::SaveInterface *>(m_generator);
3579
3580 if (iface && iface->supportsOption(Okular::SaveInterface::SaveChanges) && iface->annotationProxy() && iface->annotationProxy()->supports(AnnotationProxy::Modification)) {
3581 return true;
3582 }
3583
3584 return false;
3585}
3586
3587bool DocumentPrivate::canRemoveExternalAnnotations() const
3588{

Callers 1

Calls 3

supportsOptionMethod · 0.80
annotationProxyMethod · 0.80
supportsMethod · 0.80

Tested by

no test coverage detected