From d9aa870e5d509cc7309ab82dd102a937ab58613a Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Thu, 9 Feb 2017 04:36:04 -0500 Subject: Imported Upstream version 3.1.1+dfsg1 --- Plugins/PdfExport/pdfexport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Plugins/PdfExport/pdfexport.h') 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; -- cgit v1.2.3