summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainter.cpp
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2020-05-12 07:52:10 +0200
committerPaul Wicking <paul.wicking@qt.io>2020-05-12 09:13:55 +0200
commit565c2e8cf9b7ed59a49256e6576137c92f17d047 (patch)
tree7f69ec515b6aae7eabe5aed2179295d0e38b275a /src/gui/painting/qpainter.cpp
parent848b224df23f588e114a073f82e2f569a915d5b7 (diff)
Doc: Specify QTextOption behavior in drawText
Be more specific about overriding behavior when using the drawText overload that takes a QTextOption argument. Fixes: QTBUG-41894 Pick-to: 5.15 Change-Id: I8b38cb383005f1a07f4c6d70050e0d2cbb551521 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-rw-r--r--src/gui/painting/qpainter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index 98b053d29d..4ab4c359bc 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -5871,7 +5871,8 @@ void QPainter::drawText(const QRectF &r, int flags, const QString &str, QRectF *
\overload
Draws the given \a text in the \a rectangle specified using the \a option
- to control its positioning and orientation.
+ to control its positioning, direction, and orientation. The options given
+ in \a option override those set on the QPainter object itself.
By default, QPainter draws text anti-aliased.