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

@ -333,6 +333,7 @@ PDFPageContentScene::PDFPageContentScene(QObject* parent) :
QObject(parent),
m_firstFreeId(1),
m_isActive(false),
m_isPageContentDrawSuppressed(false),
m_widget(nullptr),
m_manipulator(this, nullptr)
{
@ -642,6 +643,11 @@ int PDFPageContentScene::getInputPriority() const
return ToolPriority + 1;
}
bool PDFPageContentScene::isPageContentDrawSuppressed() const
{
return isActive() && m_isPageContentDrawSuppressed;
}
void PDFPageContentScene::drawElements(QPainter* painter,
PDFInteger pageIndex,
PDFTextLayoutGetter& layoutGetter,
@ -823,6 +829,11 @@ void PDFPageContentScene::onSelectionChanged()
Q_EMIT selectionChanged();
}
void PDFPageContentScene::setIsPageContentDrawSuppressed(bool newIsPageContentDrawSuppressed)
{
m_isPageContentDrawSuppressed = newIsPageContentDrawSuppressed;
}
PDFWidget* PDFPageContentScene::widget() const
{
return m_widget;