QPainterStateGuard: document that restore() asserts when already at 0
Address comment from header review, amends 9ecf47a8a8d11227ecf192246d7df7c2c4dc9105. Task-number: QTBUG-132090 Change-Id: Ie6eed6f83fcdde0f90514b6016a65905505073e0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 8ae4e3efdf80b658f8de19b13bfbea68e1dbd875) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
ad16cd816a
commit
a8b8a6fd6d
@ -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