summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristiaan Janssen <christiaan.janssen@nokia.com>2011-04-29 13:54:59 (GMT)
committerChristiaan Janssen <christiaan.janssen@nokia.com>2011-05-06 09:02:27 (GMT)
commit582be247290fd015798b3d84d692c0236dbff4e1 (patch)
tree0b700b41315ab075d30ab9a9749e40f75943f8db
parent1f0f8a1b15fa4efa58feb2799614afc8bf0bd6e3 (diff)
downloadQt-582be247290fd015798b3d84d692c0236dbff4e1.zip
Qt-582be247290fd015798b3d84d692c0236dbff4e1.tar.gz
Qt-582be247290fd015798b3d84d692c0236dbff4e1.tar.bz2
QmlDebugger: removing slots in Live Preview
Reviewed-by: Kai Koehne
-rw-r--r--src/declarative/qml/qdeclarativeenginedebug.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeenginedebug.cpp b/src/declarative/qml/qdeclarativeenginedebug.cpp
index 0ac7680..bf6658a 100644
--- a/src/declarative/qml/qdeclarativeenginedebug.cpp
+++ b/src/declarative/qml/qdeclarativeenginedebug.cpp
@@ -647,7 +647,10 @@ void QDeclarativeEngineDebugServer::resetBinding(int objectId, const QString &pr
}
}
}
- } else {
+ } else if (hasValidSignal(object, propertyName)) {
+ QDeclarativeProperty property(object, propertyName, context);
+ QDeclarativePropertyPrivate::setSignalExpression(property, 0);
+ } else {
if (QDeclarativePropertyChanges *propertyChanges = qobject_cast<QDeclarativePropertyChanges *>(object)) {
propertyChanges->removeProperty(propertyName);
}