summaryrefslogtreecommitdiff
path: root/src/webchannel/qwebchannel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webchannel/qwebchannel.cpp')
-rw-r--r--src/webchannel/qwebchannel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webchannel/qwebchannel.cpp b/src/webchannel/qwebchannel.cpp
index f7a2c5f..70c8f35 100644
--- a/src/webchannel/qwebchannel.cpp
+++ b/src/webchannel/qwebchannel.cpp
@@ -123,6 +123,12 @@ void QWebChannel::registerObject(const QString &id, QObject *object)
d->publisher->registerObject(id, object);
}
+void QWebChannel::deregisterObject(QObject *object)
+{
+ // handling of deregistration is analogously to handling of a destroyed signal
+ d->publisher->signalEmitted(object, s_destroyedSignalIndex, QVariantList() << QVariant::fromValue(object));
+}
+
bool QWebChannel::blockUpdates() const
{
return d->publisher->blockUpdates;