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

Method editPageAnnotationContents

core/document.cpp:3518–3523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3516}
3517
3518void Document::editPageAnnotationContents(int page, Annotation *annotation, const QString &newContents, int newCursorPos, int prevCursorPos, int prevAnchorPos)
3519{
3520 QString prevContents = annotation->contents();
3521 QUndoCommand *uc = new EditAnnotationContentsCommand(d, annotation, page, newContents, newCursorPos, prevContents, prevCursorPos, prevAnchorPos);
3522 d->m_undoStack->push(uc);
3523}
3524
3525bool Document::canRemovePageAnnotation(const Annotation *annotation) const
3526{

Calls 1

contentsMethod · 0.45