| 3516 | } |
| 3517 | |
| 3518 | void 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 | |
| 3525 | bool Document::canRemovePageAnnotation(const Annotation *annotation) const |
| 3526 | { |