Form field highlighting

This commit is contained in:
Jakub Melka
2020-04-23 19:25:57 +02:00
parent d16e2a2c02
commit 76af397b07
6 changed files with 164 additions and 29 deletions

View File

@@ -1261,6 +1261,8 @@ class PDFFORQTLIBSHARED_EXPORT PDFAnnotationManager : public QObject, public IDo
private:
using BaseClass = QObject;
void drawWidgetAnnotationHighlight(QRectF annotationRectangle, PDFObjectReference annotationReference, QPainter* painter, QMatrix userSpaceToDeviceSpace) const;
public:
enum class Target
@@ -1367,6 +1369,11 @@ protected:
/// Returns true, if any page in the given indices has annotation
bool hasAnyPageAnnotation(const std::vector<PDFInteger>& pageIndices) const;
void drawWidgetAnnotationHighlight(QRectF annotationRectangle,
const PDFAnnotation* annotation,
QPainter* painter,
QMatrix userSpaceToDeviceSpace) const;
const PDFDocument* m_document;
PDFFontCache* m_fontCache;