summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <[email protected]>2024-12-17 11:35:36 +0100
committerVolker Hilsheimer <[email protected]>2024-12-17 16:44:14 +0100
commit8ae4e3efdf80b658f8de19b13bfbea68e1dbd875 (patch)
treebeca7f3c23021a1bc15e4ca5f41f5e99bd5ce203
parent438aa1524ee99fd636dc02a7181857ade71bb101 (diff)
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 <[email protected]>
-rw-r--r--src/gui/painting/qpainterstateguard.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qpainterstateguard.cpp b/src/gui/painting/qpainterstateguard.cpp
index 476b6ad8af9..96aa182dab8 100644
--- a/src/gui/painting/qpainterstateguard.cpp
+++ b/src/gui/painting/qpainterstateguard.cpp
@@ -50,6 +50,8 @@ QT_BEGIN_NAMESPACE
/*!
\fn void QPainterStateGuard::restore()
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