QPainterStateGuard: document that restore() asserts when already at 0
Address comment from header review, amends 9ecf47a8a8d11227ecf192246d7df7c2c4dc9105. Task-number: QTBUG-132090 Pick-to: 6.9 Change-Id: Ie6eed6f83fcdde0f90514b6016a65905505073e0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
438aa1524e
commit
8ae4e3efdf
@ -50,6 +50,8 @@ QT_BEGIN_NAMESPACE
|
|||||||
/*!
|
/*!
|
||||||
\fn void QPainterStateGuard::restore()
|
\fn void QPainterStateGuard::restore()
|
||||||
Calls QPainter::restore() if the internal save/restore counter is greater than zero.
|
Calls QPainter::restore() if the internal save/restore counter is greater than zero.
|
||||||
|
|
||||||
|
\note This function asserts in debug builds if the counter has already reached zero.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user