summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainter.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-12-13 20:48:43 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-12-22 17:43:56 +0100
commitf8a175afba12325dcff4aee21b1b11dfde3d57e4 (patch)
treed14ee34724a89c959d926576ce03f03e4c953044 /src/gui/painting/qpainter.cpp
parent701536b21843de4650ba74017a7cc4ec93a0bdbe (diff)
QPicture: Improve the documentation of Picture::play()
QPicture::play() does not save/restore the painting state when called directly but this was not correctly stated in the documentation. Therefore add a small note about this. Fixes: QTBUG-83198 Change-Id: Ia820d32ccb4689d1e696fecffa9d6b5522e246b3 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-rw-r--r--src/gui/painting/qpainter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index 853de39e73..f965761567 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -6517,7 +6517,9 @@ void QPainter::drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPo
painted on a widget or pixmap can also be stored in a picture.
This function does exactly the same as QPicture::play() when
- called with \a point = QPoint(0, 0).
+ called with \a point = QPointF(0, 0).
+
+ \note The state of the painter is preserved by this function.
\table 100%
\row