XFA: rendering of rectangle elements and borders

This commit is contained in:
Jakub Melka
2021-11-20 18:42:25 +01:00
parent 6b7e839618
commit aab5c41e12
5 changed files with 465 additions and 5 deletions

View File

@ -1657,6 +1657,17 @@ const std::optional<QCursor>& PDFFormManager::getCursor() const
return m_mouseCursor;
}
void PDFFormManager::drawXFAForm(const QMatrix& pagePointToDevicePointMatrix,
const PDFPage* page,
QList<PDFRenderError>& errors,
QPainter* painter)
{
if (hasXFAForm())
{
m_xfaEngine.draw(pagePointToDevicePointMatrix, page, errors, painter);
}
}
void PDFFormManager::clearEditors()
{
qDeleteAll(m_widgetEditors);