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

Method EditAnnotationContentsCommand

core/documentcommands.cpp:392–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392EditAnnotationContentsCommand::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
401void EditAnnotationContentsCommand::undo()
402{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected