summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativemousearea_p.h
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-05-06 05:48:34 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-05-07 01:02:40 (GMT)
commitd7ef9666e2a3c8d06c5f32b7f47f602b177a74f6 (patch)
treef78aede0ac6e535e7a8301c0f8020b32b4286ffc /src/declarative/graphicsitems/qdeclarativemousearea_p.h
parent7c945e152c9abd0478bed5a4d251012944d93b44 (diff)
downloadQt-d7ef9666e2a3c8d06c5f32b7f47f602b177a74f6.zip
Qt-d7ef9666e2a3c8d06c5f32b7f47f602b177a74f6.tar.gz
Qt-d7ef9666e2a3c8d06c5f32b7f47f602b177a74f6.tar.bz2
Avoid emitting release when the mouse is ungrabbed
Added an onCanceled signal to mouse area, which is triggered when the mouse area rejects the event (propagates to the nearest mouse area beneath) or some other element steals the mouse grab (flickable, for example). Task-number: QTBUG-10162 Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativemousearea_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativemousearea_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativemousearea_p.h b/src/declarative/graphicsitems/qdeclarativemousearea_p.h
index e3f523b..df77ac6 100644
--- a/src/declarative/graphicsitems/qdeclarativemousearea_p.h
+++ b/src/declarative/graphicsitems/qdeclarativemousearea_p.h
@@ -163,6 +163,7 @@ Q_SIGNALS:
void doubleClicked(QDeclarativeMouseEvent *mouse);
void entered();
void exited();
+ void canceled();
protected:
void setHovered(bool);