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