Remove deprecated QPrinter methods.
This commit is contained in:
parent
968b41aa74
commit
26457152cd
|
@ -179,7 +179,7 @@ void VLayoutExporter::ExportToPDF(QGraphicsScene *scene) const
|
||||||
printer.setOutputFileName(m_fileName);
|
printer.setOutputFileName(m_fileName);
|
||||||
printer.setDocName(QFileInfo(m_fileName).fileName());
|
printer.setDocName(QFileInfo(m_fileName).fileName());
|
||||||
printer.setResolution(static_cast<int>(PrintDPI));
|
printer.setResolution(static_cast<int>(PrintDPI));
|
||||||
printer.setOrientation(QPrinter::Portrait);
|
printer.setPageOrientation(QPageLayout::Portrait);
|
||||||
printer.setFullPage(m_ignorePrinterMargins);
|
printer.setFullPage(m_ignorePrinterMargins);
|
||||||
|
|
||||||
qreal width = FromPixel(m_imageRect.width() * m_xScale + m_margins.left() + m_margins.right(), Unit::Mm);
|
qreal width = FromPixel(m_imageRect.width() * m_xScale + m_margins.left() + m_margins.right(), Unit::Mm);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user