Update the QSignalBlocker docs to show actual behavior

QSignalBlocker resets to the previous state, which might have already
been a blocked signal state.

Task-number: QTBUG-39352
Change-Id: I918cc6ea346755b940e027cee5d6704824fbba32
Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
Thiago Macieira 2014-05-29 09:36:15 -07:00 committed by The Qt Project
parent bfc0b27b4b
commit 2d75c21923

View File

@ -513,7 +513,7 @@ void QMetaCallEvent::placeMetaCall(QObject *object)
\code
const bool wasBlocked = someQObject->blockSignals(true);
// no signals here
someQObject->blockSignals(false);
someQObject->blockSignals(wasBlocked);
\endcode
except the code using QSignalBlocker is safe in the face of