Port away from deprecated QPrinter functions

This implies changing from QPrinter::Orientation to QPageLayout::Orientation. The actual values are the same tough.
2 jobs for master in 22 minutes and 2 seconds (queued for 76 minutes and 16 seconds)
Status Job ID Name Coverage
  Build
passed #66815
build_clazy_clang_tidy

00:11:37

passed #66814
linux kf5-qt5 qt5.12

00:10:24

14.0%