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>
bb10
Christian Ehrlicher 2020-12-13 20:48:43 +01:00
parent 701536b218
commit f8a175afba
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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