Change from QPainter to QPaintDevice in the API for PDF rendering

* This is to be able to use QPagedPaintDevice::nextPage in the Multi plot rendering.
This commit is contained in:
Gaute Lindkvist
2019-12-19 10:34:23 +01:00
parent 65f4a5e089
commit 27788b1abd
13 changed files with 46 additions and 33 deletions

View File

@@ -30,6 +30,7 @@ class RimProject;
class QwtPlotCurve;
class QKeyEvent;
class QPaintDevice;
//==================================================================================================
///
@@ -59,7 +60,7 @@ public:
void updateLayout();
void updateParentLayout();
void renderWindowContent( QPainter* painter );
void renderWindowContent( QPaintDevice* painter );
QPageLayout pageLayout() const;
protected:
@@ -75,7 +76,7 @@ protected:
private:
virtual void doUpdateLayout() {}
virtual bool hasCustomPageLayout( QPageLayout* customPageLayout ) const;
virtual void doRenderWindowContent( QPainter* painter ) = 0;
virtual void doRenderWindowContent( QPaintDevice* paintDevice ) = 0;
private:
friend class RimProject;