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

Method addAnnotation

core/textdocumentgenerator.cpp:134–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void TextDocumentGeneratorPrivate::addAnnotation(Annotation *annotation, int cursorBegin, int cursorEnd)
135{
136 if (!annotation) {
137 return;
138 }
139
140 annotation->setFlags(annotation->flags() | Okular::Annotation::External);
141
142 AnnotationPosition position;
143 position.annotation = annotation;
144 position.startPosition = cursorBegin;
145 position.endPosition = cursorEnd;
146
147 mAnnotationPositions.append(position);
148}
149
150void TextDocumentGeneratorPrivate::addTitle(int level, const QString &title, const QTextBlock &block)
151{

Callers 1

Calls 3

setFlagsMethod · 0.80
appendMethod · 0.80
flagsMethod · 0.45

Tested by

no test coverage detected