Fix deprecation warning.

This commit is contained in:
Roman Telezhynskyi 2021-05-04 09:19:04 +03:00
parent a01f06b439
commit ca20519fa7

View file

@ -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),