aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/PdfExport/pdfexport.h
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2017-02-09 04:36:04 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2017-02-09 04:36:04 -0500
commitd9aa870e5d509cc7309ab82dd102a937ab58613a (patch)
treed92d03d76b5c390b335f1cfd761f1a0b59ec8496 /Plugins/PdfExport/pdfexport.h
parent68ee4cbcbe424b95969c70346283a9f217f63825 (diff)
Imported Upstream version 3.1.1+dfsg1upstream/3.1.1+dfsg1
Diffstat (limited to 'Plugins/PdfExport/pdfexport.h')
-rw-r--r--Plugins/PdfExport/pdfexport.h3
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;