Remove deprecated QPrinter methods.

Missed one paperRect().
This commit is contained in:
Roman Telezhynskyi 2020-12-21 16:21:42 +02:00
parent 9793d5e6a2
commit 319a8ec48a

View File

@ -1339,7 +1339,7 @@ void MainWindowsNoGUI::PdfTiledFile(const QString &name)
SetPrinterSettings(&printer, PrintType::PrintPDF);
// Call IsPagesFit after setting a printer settings and check if pages is not bigger than printer's paper size
if (not isTiled && not IsPagesFit(printer.paperRect().size()))
if (not isTiled && not IsPagesFit(printer.pageLayout().paintRectPixels(printer.resolution()).size()))
{
qWarning()<<tr("Pages will be cropped because they do not fit printer paper size.");
}