Editor plugin: Building stream

This commit is contained in:
Jakub Melka
2024-04-28 19:50:55 +02:00
parent 75db2de2a0
commit a40faf855d
8 changed files with 196 additions and 3 deletions

View File

@@ -561,6 +561,7 @@ public:
virtual QString getTooltip() const override;
virtual const std::optional<QCursor>& getCursor() const override;
virtual int getInputPriority() const override;
virtual bool isPageContentDrawSuppressed() const;
virtual void drawPage(QPainter* painter,
PDFInteger pageIndex,
@@ -579,6 +580,8 @@ public:
const PDFPrecompiledPage* compiledPage,
QList<PDFRenderError>& errors) const;
void setIsPageContentDrawSuppressed(bool newIsPageContentDrawSuppressed);
signals:
/// This signal is emitted when scene has changed (including graphics)
void sceneChanged(bool graphicsOnly);
@@ -637,6 +640,7 @@ private:
PDFInteger m_firstFreeId;
bool m_isActive;
bool m_isPageContentDrawSuppressed;
PDFWidget* m_widget;
std::vector<std::unique_ptr<PDFPageContentElement>> m_elements;
std::optional<QCursor> m_cursor;