diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-07 01:56:07 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-07 01:56:07 (GMT) |
commit | 9c4140af1cbc650905de698daa4ab0183efba477 (patch) | |
tree | 2c59269f67505831e0dc574f23f8f1919e485383 /src/declarative/graphicsitems/qdeclarativemousearea_p.h | |
parent | 173c1194f3fc35ba7249c30e3e99bd975dcdcc64 (diff) | |
download | Qt-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_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativemousearea_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativemousearea_p.h b/src/declarative/graphicsitems/qdeclarativemousearea_p.h index db49b57..58faac1 100644 --- a/src/declarative/graphicsitems/qdeclarativemousearea_p.h +++ b/src/declarative/graphicsitems/qdeclarativemousearea_p.h @@ -55,7 +55,7 @@ class Q_DECLARATIVE_EXPORT QDeclarativeDrag : public QObject Q_OBJECT Q_ENUMS(Axis) - Q_PROPERTY(QGraphicsObject *target READ target WRITE setTarget NOTIFY targetChanged) + Q_PROPERTY(QGraphicsObject *target READ target WRITE setTarget NOTIFY targetChanged RESET resetTarget) Q_PROPERTY(Axis axis READ axis WRITE setAxis NOTIFY axisChanged) Q_PROPERTY(qreal minimumX READ xmin WRITE setXmin NOTIFY minimumXChanged) Q_PROPERTY(qreal maximumX READ xmax WRITE setXmax NOTIFY maximumXChanged) @@ -69,6 +69,7 @@ public: QGraphicsObject *target() const; void setTarget(QGraphicsObject *); + void resetTarget(); enum Axis { XAxis=0x01, YAxis=0x02, XandYAxis=0x03 }; Axis axis() const; |