mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Fixing bugs - annotation rendering
This commit is contained in:
@ -1036,6 +1036,13 @@ private:
|
||||
using BaseClass = QObject;
|
||||
|
||||
public:
|
||||
|
||||
enum class Target
|
||||
{
|
||||
View,
|
||||
Print
|
||||
};
|
||||
|
||||
explicit PDFAnnotationManager(PDFDrawWidgetProxy* proxy, QObject* parent);
|
||||
virtual ~PDFAnnotationManager() override;
|
||||
|
||||
@ -1047,6 +1054,9 @@ public:
|
||||
|
||||
void setDocument(const PDFDocument* document);
|
||||
|
||||
Target getTarget() const;
|
||||
void setTarget(Target target);
|
||||
|
||||
private:
|
||||
struct PageAnnotation
|
||||
{
|
||||
@ -1074,6 +1084,7 @@ private:
|
||||
const PDFDocument* m_document;
|
||||
PDFDrawWidgetProxy* m_proxy;
|
||||
mutable std::map<PDFInteger, PageAnnotations> m_pageAnnotations;
|
||||
Target m_target = Target::View;
|
||||
};
|
||||
|
||||
} // namespace pdf
|
||||
|
Reference in New Issue
Block a user