summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qprinter.h
diff options
context:
space:
mode:
authorÖmer Fadıl USTA <omerusta@gmail.com>2020-09-17 04:19:49 +0300
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-17 13:29:29 +0200
commitdf8f1b86f8621ddbf21090b72c09c38ecb48709a (patch)
treefb1d5b236ce6997800d84685b53223fac1f8b430 /src/printsupport/kernel/qprinter.h
parenta82032351c921c3d5d57122aca57b47f83f9b9d1 (diff)
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 (adapted from commit 8d8b271fe9cd838f2975392ca9856ac19803f0b6) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/printsupport/kernel/qprinter.h')
-rw-r--r--src/printsupport/kernel/qprinter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printsupport/kernel/qprinter.h b/src/printsupport/kernel/qprinter.h
index ee881f9b03..1b6563d093 100644
--- a/src/printsupport/kernel/qprinter.h
+++ b/src/printsupport/kernel/qprinter.h
@@ -170,7 +170,7 @@ public:
#if QT_DEPRECATED_SINCE(5,15)
QT_DEPRECATED_VERSION_X_5_15("Use setPageOrientation() instead.")
void setOrientation(Orientation);
- QT_DEPRECATED_VERSION_X_5_15("Use pageLayout().pageOrientation() instead.")
+ QT_DEPRECATED_VERSION_X_5_15("Use pageLayout().orientation() instead.")
Orientation orientation() const;
QT_DEPRECATED_VERSION_X_5_15("Use setPageSize(QPageSize) instead.")
@@ -285,7 +285,7 @@ public:
QT_DEPRECATED_VERSION_X_5_15("Use setPageMargins(QMarginsF, QPageLayout::Unit) instead.")
void setPageMargins(qreal left, qreal top, qreal right, qreal bottom, Unit unit);
- QT_DEPRECATED_VERSION_X_5_15("Use pageLayout().pageMargins() instead.")
+ QT_DEPRECATED_VERSION_X_5_15("Use pageLayout().margins() instead.")
void getPageMargins(qreal *left, qreal *top, qreal *right, qreal *bottom, Unit unit) const;
#endif