summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@nokia.com>2011-02-16 13:10:29 +0100
committerJerome Pasion <jerome.pasion@nokia.com>2011-02-16 13:10:29 +0100
commite2ae6a38ce2739cee52b7cae9198ca45e315c0cd (patch)
treebb9d89f462372a7beec77d803f7f42ff6ea10514 /doc/src/declarative
parent024e657219e86934fbbff94598744d59a234c204 (diff)
Added new snippet code.
Task-number: QTBUG-16071
Diffstat (limited to 'doc/src/declarative')
-rw-r--r--doc/src/declarative/mouseevents.qdoc5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/declarative/mouseevents.qdoc b/doc/src/declarative/mouseevents.qdoc
index eed3a3a394..533f64b0e7 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.