Commit e892328d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use deprecated method

parent 69002ed1
......@@ -757,9 +757,9 @@ void KmagApp::slotFilePrint()
// use some AI to get the best orientation
if(pixmap.width() > pixmap.height()) {
m_printer->setOrientation(QPrinter::Landscape);
m_printer->setPageOrientation(QPageLayout::Landscape);
} else {
m_printer->setOrientation(QPrinter::Portrait);
m_printer->setPageOrientation(QPageLayout::Portrait);
}
QPrintDialog *printDialog = new QPrintDialog(m_printer, this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment