diff options
author | Nicolas Fella <nicolas.fella@kdab.com> | 2020-09-09 17:15:23 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-10 12:09:07 +0000 |
commit | dd116f8eb5483748204db10cb2cd372f070ac3fb (patch) | |
tree | 3e975831094ea50341f1201417128b97c96a3886 /src/printsupport | |
parent | edfd6a18eb45f664ab87c56ee79c9093c6f283af (diff) |
Fix deprecation documentation in QPrinter
QPageLayout doesn't have pageOrientation(), only orientation()
Change-Id: I2f2caba46b30fafbae3b2d084683cefe904e6557
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/printsupport')
-rw-r--r-- | src/printsupport/kernel/qprinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printsupport/kernel/qprinter.cpp b/src/printsupport/kernel/qprinter.cpp index fbf5e5c2ba..b1a5d838b1 100644 --- a/src/printsupport/kernel/qprinter.cpp +++ b/src/printsupport/kernel/qprinter.cpp @@ -979,7 +979,7 @@ void QPrinter::setCreator(const QString &creator) On Windows and Mac, this option can be changed while printing and will take effect from the next call to newPage(). - To obtain the current QPageLayout::Orientation use pageLayout().pageOrientation(). + To obtain the current QPageLayout::Orientation use pageLayout().orientation(). Returns true if the page orientation was successfully set to \a orientation. @@ -1027,7 +1027,7 @@ void QPrinter::setCreator(const QString &creator) #endif /*! - \obsolete Use pageLayout().pageOrientation() instead. + \obsolete Use pageLayout().orientation() instead. Returns the orientation setting. This is driver-dependent, but is usually QPrinter::Portrait. |