diff options
Diffstat (limited to 'Plugins/PdfExport/pdfexport.h')
| -rw-r--r-- | Plugins/PdfExport/pdfexport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Plugins/PdfExport/pdfexport.h b/Plugins/PdfExport/pdfexport.h index 9c7cc62..54239ff 100644 --- a/Plugins/PdfExport/pdfexport.h +++ b/Plugins/PdfExport/pdfexport.h @@ -72,7 +72,7 @@ class PDFEXPORTSHARED_EXPORT PdfExport : public GenericExportPlugin void deinit(); protected: - virtual QPagedPaintDevice* createPaintDevice(const QString& documentTitle); + virtual QPagedPaintDevice* createPaintDevice(const QString& documentTitle, bool& takeOwnership); int lineWidth = 15; @@ -182,6 +182,7 @@ class PDFEXPORTSHARED_EXPORT PdfExport : public GenericExportPlugin CFG_LOCAL(PdfExportConfig, cfg) QPagedPaintDevice* pagedWriter = nullptr; + bool takeDeviceOwnership = true; QPainter* painter = nullptr; QTextOption* textOption = nullptr; QFont stdFont; |
