| 390 | } |
| 391 | |
| 392 | EditAnnotationContentsCommand::EditAnnotationContentsCommand(DocumentPrivate *docPriv, Annotation *annotation, int pageNumber, const QString &newContents, int newCursorPos, const QString &prevContents, int prevCursorPos, int prevAnchorPos) |
| 393 | : EditTextCommand(newContents, newCursorPos, prevContents, prevCursorPos, prevAnchorPos) |
| 394 | , m_docPriv(docPriv) |
| 395 | , m_annotation(annotation) |
| 396 | , m_pageNumber(pageNumber) |
| 397 | { |
| 398 | setText(i18nc("Edit an annotation's text contents", "edit annotation contents")); |
| 399 | } |
| 400 | |
| 401 | void EditAnnotationContentsCommand::undo() |
| 402 | { |
nothing calls this directly
no outgoing calls
no test coverage detected