From f8a175afba12325dcff4aee21b1b11dfde3d57e4 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sun, 13 Dec 2020 20:48:43 +0100 Subject: 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 --- src/gui/image/qpicture.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/image') diff --git a/src/gui/image/qpicture.cpp b/src/gui/image/qpicture.cpp index d2ca2bbd22..1f16318f2e 100644 --- a/src/gui/image/qpicture.cpp +++ b/src/gui/image/qpicture.cpp @@ -358,6 +358,8 @@ void QPicture::setBoundingRect(const QRect &r) This function does exactly the same as QPainter::drawPicture() with (x, y) = (0, 0). + + \note The state of the painter isn't preserved by this function. */ bool QPicture::play(QPainter *painter) -- cgit v1.2.3