summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeevents.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-07 01:28:02 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-07 01:28:02 (GMT)
commit173c1194f3fc35ba7249c30e3e99bd975dcdcc64 (patch)
tree0b481d96927df97bc565cb1607130f8d65493d27 /src/declarative/graphicsitems/qdeclarativeevents.cpp
parentc08d826ed1afc8e4c1289b8daebca9dc0e17fbc2 (diff)
downloadQt-173c1194f3fc35ba7249c30e3e99bd975dcdcc64.zip
Qt-173c1194f3fc35ba7249c30e3e99bd975dcdcc64.tar.gz
Qt-173c1194f3fc35ba7249c30e3e99bd975dcdcc64.tar.bz2
Document MouseEvent.accepted.
Task-number: QTBUG-9639
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeevents.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeevents.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeevents.cpp b/src/declarative/graphicsitems/qdeclarativeevents.cpp
index 6118ea8..a181071 100644
--- a/src/declarative/graphicsitems/qdeclarativeevents.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeevents.cpp
@@ -133,6 +133,17 @@ Item {
These properties hold the position of the mouse event.
*/
+
+/*!
+ \qmlproperty bool MouseEvent::accepted
+
+ Setting \a accepted to true prevents the mouse event from being
+ propagated to items below this item.
+
+ Generally, if the item acts on the mouse event then it should be accepted
+ so that items lower in the stacking order do not also respond to the same event.
+*/
+
/*!
\qmlproperty enum MouseEvent::button