From 26457152cded4b4df8c76764cae7f585401b7a57 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 24 Dec 2020 13:32:40 +0200 Subject: [PATCH] Remove deprecated QPrinter methods. --- src/libs/vlayout/vlayoutexporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vlayout/vlayoutexporter.cpp b/src/libs/vlayout/vlayoutexporter.cpp index c085dc5bb..381b74d5c 100644 --- a/src/libs/vlayout/vlayoutexporter.cpp +++ b/src/libs/vlayout/vlayoutexporter.cpp @@ -179,7 +179,7 @@ void VLayoutExporter::ExportToPDF(QGraphicsScene *scene) const printer.setOutputFileName(m_fileName); printer.setDocName(QFileInfo(m_fileName).fileName()); printer.setResolution(static_cast(PrintDPI)); - printer.setOrientation(QPrinter::Portrait); + printer.setPageOrientation(QPageLayout::Portrait); printer.setFullPage(m_ignorePrinterMargins); qreal width = FromPixel(m_imageRect.width() * m_xScale + m_margins.left() + m_margins.right(), Unit::Mm);