diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-03-17 04:14:46 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-03-17 04:16:08 (GMT) |
commit | 0830464f4a139234ba424b25590fc5d7bb5f4785 (patch) | |
tree | 2aa2b65b6a37841158942d98285044171588e7c3 /src/declarative/graphicsitems/qdeclarativemousearea.cpp | |
parent | 36dcc2be63375da1f73d87565397fd11bf445bf8 (diff) | |
download | Qt-0830464f4a139234ba424b25590fc5d7bb5f4785.zip Qt-0830464f4a139234ba424b25590fc5d7bb5f4785.tar.gz Qt-0830464f4a139234ba424b25590fc5d7bb5f4785.tar.bz2 |
MouseArea works now with any QGraphicsObject
Easy, you just need to change the property.
Reviewed-by:Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativemousearea.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativemousearea.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativemousearea.cpp b/src/declarative/graphicsitems/qdeclarativemousearea.cpp index 13195af..26242bc 100644 --- a/src/declarative/graphicsitems/qdeclarativemousearea.cpp +++ b/src/declarative/graphicsitems/qdeclarativemousearea.cpp @@ -58,12 +58,12 @@ QDeclarativeDrag::~QDeclarativeDrag() { } -QDeclarativeItem *QDeclarativeDrag::target() const +QGraphicsObject *QDeclarativeDrag::target() const { return _target; } -void QDeclarativeDrag::setTarget(QDeclarativeItem *t) +void QDeclarativeDrag::setTarget(QGraphicsObject *t) { if (_target == t) return; |