summaryrefslogtreecommitdiff
path: root/src/designer
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-09 15:14:50 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-09 13:36:18 +0000
commit87b3a255d3ede3d8aef7fc1ebdbb30b2bff2463f (patch)
tree31f09d0ff09afe730430cd4445deb3b4a0ef044c /src/designer
parent3af741cc180445cc487af6853575651ba204c4c1 (diff)
downloadqttools-87b3a255d3ede3d8aef7fc1ebdbb30b2bff2463f.tar.gz
Qt Designer: Fix build of the QPrinter-related code
Adapt to qtbase/00a5629d8de18bc1a5dfb6e2526c03b4b021c903. Pick-to: 5.15 Change-Id: I60d087effa61b09c7907d6168f8fa710462913c3 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/designer')
-rw-r--r--src/designer/src/designer/qdesigner_actions.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/designer/src/designer/qdesigner_actions.cpp b/src/designer/src/designer/qdesigner_actions.cpp
index d21eb010c..642fc5e46 100644
--- a/src/designer/src/designer/qdesigner_actions.cpp
+++ b/src/designer/src/designer/qdesigner_actions.cpp
@@ -1334,7 +1334,9 @@ void QDesignerActions::printPreviewImage()
return;
const QSizeF pixmapSize = pixmap.size();
- m_printer->setOrientation( pixmapSize.width() > pixmapSize.height() ? QPrinter::Landscape : QPrinter::Portrait);
+
+ m_printer->setPageOrientation(pixmapSize.width() > pixmapSize.height() ?
+ QPageLayout::Landscape : QPageLayout::Portrait);
// Printer parameters
QPrintDialog dialog(m_printer, fw);