summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativemousearea.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-07 01:56:07 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-07 01:56:07 (GMT)
commit9c4140af1cbc650905de698daa4ab0183efba477 (patch)
tree2c59269f67505831e0dc574f23f8f1919e485383 /src/declarative/graphicsitems/qdeclarativemousearea.cpp
parent173c1194f3fc35ba7249c30e3e99bd975dcdcc64 (diff)
downloadQt-9c4140af1cbc650905de698daa4ab0183efba477.zip
Qt-9c4140af1cbc650905de698daa4ab0183efba477.tar.gz
Qt-9c4140af1cbc650905de698daa4ab0183efba477.tar.bz2
Allow MouseArea.Drag.target to be reset.
Task-number: QTBUG-9637
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativemousearea.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativemousearea.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativemousearea.cpp b/src/declarative/graphicsitems/qdeclarativemousearea.cpp
index 06ecb61..c95bd29 100644
--- a/src/declarative/graphicsitems/qdeclarativemousearea.cpp
+++ b/src/declarative/graphicsitems/qdeclarativemousearea.cpp
@@ -71,6 +71,14 @@ void QDeclarativeDrag::setTarget(QGraphicsObject *t)
emit targetChanged();
}
+void QDeclarativeDrag::resetTarget()
+{
+ if (!_target)
+ return;
+ _target = 0;
+ emit targetChanged();
+}
+
QDeclarativeDrag::Axis QDeclarativeDrag::axis() const
{
return _axis;