path: root/src/corelib/kernel
diff options
authorAndy Shaw <>2015-12-07 14:52:33 +0100
committerAndy Shaw <>2015-12-11 09:41:14 +0000
commit6e14d63db023fdad223d9dc35b0e1ba31aac997d (patch)
tree5f6ff9cc372a03ebd03ea2e75a23c674c6496709 /src/corelib/kernel
parent1440c13c8c1ed8eaa99c5d5edbd6fa61fd5eee8b (diff)
Add explicit note about removeMappings() not disconnecting the signal
There can be a bit of confusion here regarding what removeMappings() will do in this case so add an explicit note to be clearer. Task-number: QTBUG-49499 Change-Id: Iabcf5cb2653f0b747727b2c92a244e95ec1836f8 Reviewed-by: Topi Reiniƶ <>
Diffstat (limited to 'src/corelib/kernel')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/kernel/qsignalmapper.cpp b/src/corelib/kernel/qsignalmapper.cpp
index 00aa31383f..5e8ce0c251 100644
--- a/src/corelib/kernel/qsignalmapper.cpp
+++ b/src/corelib/kernel/qsignalmapper.cpp
@@ -220,6 +220,9 @@ QObject *QSignalMapper::mapping(QObject *object) const
Removes all mappings for \a sender.
This is done automatically when mapped objects are destroyed.
+ \note This does not disconnect any signals. If \a sender is not destroyed
+ then this will need to be done explicitly if required.
void QSignalMapper::removeMappings(QObject *sender)