From ca20519fa7300dc95b6b66b39c6d8505af40547d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 4 May 2021 09:19:04 +0300 Subject: [PATCH] Fix deprecation warning. --- src/app/puzzle/vpmainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/puzzle/vpmainwindow.cpp b/src/app/puzzle/vpmainwindow.cpp index 9988ae8dd..e4c5b500d 100644 --- a/src/app/puzzle/vpmainwindow.cpp +++ b/src/app/puzzle/vpmainwindow.cpp @@ -769,7 +769,7 @@ void VPMainWindow::generateTiledPdf(QString fileName) printer->setCreator(QGuiApplication::applicationDisplayName()+QChar(QChar::Space)+ QCoreApplication::applicationVersion()); - printer->setOrientation(QPrinter::Portrait); // in the pdf file the pages should always be in portrait + printer->setPageOrientation(QPageLayout::Portrait); // in the pdf file the pages should always be in portrait // here we might need to so some rounding for the size. printer->setPageSize(QPageSize(m_layout->GetTilesSize(Unit::Mm),