diff options
author | Jerome Pasion <jerome.pasion@nokia.com> | 2011-02-16 12:10:29 (GMT) |
---|---|---|
committer | Jerome Pasion <jerome.pasion@nokia.com> | 2011-02-16 12:10:29 (GMT) |
commit | e2ae6a38ce2739cee52b7cae9198ca45e315c0cd (patch) | |
tree | bb9d89f462372a7beec77d803f7f42ff6ea10514 /doc/src/declarative | |
parent | 024e657219e86934fbbff94598744d59a234c204 (diff) | |
download | Qt-e2ae6a38ce2739cee52b7cae9198ca45e315c0cd.zip Qt-e2ae6a38ce2739cee52b7cae9198ca45e315c0cd.tar.gz Qt-e2ae6a38ce2739cee52b7cae9198ca45e315c0cd.tar.bz2 |
Added new snippet code.
Task-number: QTBUG-16071
Diffstat (limited to 'doc/src/declarative')
-rw-r--r-- | doc/src/declarative/mouseevents.qdoc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/declarative/mouseevents.qdoc b/doc/src/declarative/mouseevents.qdoc index eed3a3a..533f64b 100644 --- a/doc/src/declarative/mouseevents.qdoc +++ b/doc/src/declarative/mouseevents.qdoc @@ -57,7 +57,7 @@ to define this area is to anchor the \c MouseArea to its parent's area using the component), then the MouseArea will fill the area defined by the parent's dimensions. Alternatively, an area smaller or larger than the parent is definable. -\snippet doc/src/snippets/declarative/mouse.qml anchor fill +\snippet doc/src/snippets/declarative/mousearea/mousearea-snippet.qml anchor fill \section1 Receiving Events @@ -79,7 +79,7 @@ gestures in greater detail. \endlist These signals have signal handlers that are invoked when the signals are emitted. -\snippet doc/src/snippets/declarative/mouse.qml mouse handlers +\snippet doc/src/snippets/declarative/mousearea/mousearea-snippet.qml mouse handlers \section1 Enabling Gestures Some mouse gestures and button clicks need to be enabled before they send or @@ -97,6 +97,7 @@ positioning even when there are no mouse button presses. Setting the \c hoverEnabled property to \c true, in turn will enable the \c entered, \c exited, and \c positionChanged signal and their respective signal handlers. +\snippet doc/src/snippets/declarative/mousearea/mousearea-snippet.qml enable handlers Additionally, to disable the whole mouse area, set the \c MouseArea element's \c enabled property to \c false. |