Remove deprecated QPrinter methods.
Missed one paperRect().
This commit is contained in:
parent
9793d5e6a2
commit
319a8ec48a
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user