Коммит b45d07af создал по автору OMP Education's avatar OMP Education Зафиксировано автором Alexey Andreyev
Просмотр файлов

[Annotations] Adapt to new amberpdf API

Future work is to support different annotations types

Contributes to:

https://gitlab.com/omprussia/libraries/amberpdf-qml-plugin/-/issues/18
владелец a11eb348
...@@ -246,7 +246,8 @@ void PdfPageItem::editNote(int noteId, const QString &newContent, const QColor & ...@@ -246,7 +246,8 @@ void PdfPageItem::editNote(int noteId, const QString &newContent, const QColor &
watcher->deleteLater(); watcher->deleteLater();
}); });
auto future = m_amberPage->addAnnotation(annotationToEdit->rect, newColor, annotationToEdit->author, newContent); QList<QPointF> emptyPoints;
auto future = m_amberPage->addAnnotation(annotationToEdit->rect, newColor, emptyPoints, annotationToEdit->author, newContent);
watcher->setFuture(future); watcher->setFuture(future);
connect(this, &PdfPageItem::annotationDelete, this, [this, noteId](int annotationId, bool result) { connect(this, &PdfPageItem::annotationDelete, this, [this, noteId](int annotationId, bool result) {
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать