mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-10-01 04:41:40 +02:00
Fix deprecation warning.
This commit is contained in:
parent
a01f06b439
commit
ca20519fa7
|
@ -769,7 +769,7 @@ void VPMainWindow::generateTiledPdf(QString fileName)
|
||||||
|
|
||||||
printer->setCreator(QGuiApplication::applicationDisplayName()+QChar(QChar::Space)+
|
printer->setCreator(QGuiApplication::applicationDisplayName()+QChar(QChar::Space)+
|
||||||
QCoreApplication::applicationVersion());
|
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.
|
// here we might need to so some rounding for the size.
|
||||||
printer->setPageSize(QPageSize(m_layout->GetTilesSize(Unit::Mm),
|
printer->setPageSize(QPageSize(m_layout->GetTilesSize(Unit::Mm),
|
||||||
|
|
Loading…
Reference in a new issue