Fix deprecation documentation about margin and orientation in QPrinter

There were a small typos about those methods and fixed with correct ones.

Fixes: QTBUG-86635
Change-Id: Ib853e502fdcdafdf3ddf7ef6d25d368ebc2a631f
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Ömer Fadıl USTA 2020-09-17 04:19:49 +03:00 committed by Volker Hilsheimer
parent fe3bebbd68
commit 8d8b271fe9
2 changed files with 4 additions and 4 deletions

View File

@ -184,7 +184,7 @@ bool QPagedPaintDevice::setPageOrientation(QPageLayout::Orientation orientation)
You should not call any painting methods between a call to setPageMargins()
and newPage() as the wrong paint metrics may be used.
To get the current page margins use pageLayout().pageMargins().
To get the current page margins use pageLayout().margins().
Returns true if the page margins were successfully set to \a margins.

View File

@ -360,7 +360,7 @@ void QPdfWriter::addFileAttachment(const QString &fileName, const QByteArray &da
You should not call any painting methods between a call to setPageOrientation()
and newPage() as the wrong paint metrics may be used.
To get the current QPageLayout::Orientation use pageLayout().pageOrientation().
To get the current QPageLayout::Orientation use pageLayout().orientation().
Returns true if the page orientation was successfully set to \a orientation.
@ -378,7 +378,7 @@ void QPdfWriter::addFileAttachment(const QString &fileName, const QByteArray &da
You should not call any painting methods between a call to setPageMargins()
and newPage() as the wrong paint metrics may be used.
To get the current page margins use pageLayout().pageMargins().
To get the current page margins use pageLayout().margins().
Returns true if the page margins were successfully set to \a margins.
@ -396,7 +396,7 @@ void QPdfWriter::addFileAttachment(const QString &fileName, const QByteArray &da
You should not call any painting methods between a call to setPageMargins()
and newPage() as the wrong paint metrics may be used.
To get the current page margins use pageLayout().pageMargins().
To get the current page margins use pageLayout().margins().
Returns true if the page margins were successfully set to \a margins.