| 132 | } |
| 133 | |
| 134 | void 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 | |
| 150 | void TextDocumentGeneratorPrivate::addTitle(int level, const QString &title, const QTextBlock &block) |
| 151 | { |
no test coverage detected