make print preview working for > Qt 5.9

This commit is contained in:
wmayer
2019-07-11 00:06:38 +02:00
parent 09bfdb02bf
commit 7539b8314e

View File

@@ -477,7 +477,9 @@ void View3DInventor::printPreview()
{
QPrinter printer(QPrinter::ScreenResolution);
printer.setFullPage(true);
//printer.setPageSize(QPrinter::A3);
#if (QT_VERSION > QT_VERSION_CHECK(5, 9, 0))
printer.setPageSize(QPrinter::A4);
#endif
printer.setOrientation(QPrinter::Landscape);
QPrintPreviewDialog dlg(&printer, this);