aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/qtquick2/focus.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/qtquick2/focus.qdoc')
-rw-r--r--doc/src/qtquick2/focus.qdoc22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/src/qtquick2/focus.qdoc b/doc/src/qtquick2/focus.qdoc
index 05d797e7be..e2c4c79d3c 100644
--- a/doc/src/qtquick2/focus.qdoc
+++ b/doc/src/qtquick2/focus.qdoc
@@ -43,7 +43,7 @@ and to address some of the cases unique to fluid user interfaces, the QML items
When the user presses or releases a key, the following occurs:
\list 1
\o Qt receives the key action and generates a key event.
-\o If the Qt widget containing the \l QDeclarativeView has focus, the key event
+\o If the Qt widget containing the \l QQuickView has focus, the key event
is delivered to it. Otherwise, regular Qt key handling continues.
\o The key event is delivered by the scene to the QML \l Item with
\i {active focus}. If no Item has active focus, the key event is
@@ -56,8 +56,8 @@ If the \c {Rectangle} element in the following example has active focus and the
it will bubble up to its parent. However, pressing the \c B key will bubble up to the root
item and thus subsequently be ignored.
-\snippet doc/src/snippets/declarative/focus/rectangle.qml simple key event
-\snippet doc/src/snippets/declarative/focus/rectangle.qml simple key event end
+\snippet doc/src/snippets/qml/focus/rectangle.qml simple key event
+\snippet doc/src/snippets/qml/focus/rectangle.qml simple key event end
\o If the root \l Item is reached, the key event is \l {QEvent::ignore()}{ignored} and regular Qt key handling continues.
@@ -71,7 +71,7 @@ Whether or not an \l Item has active focus can be queried through the
property \c {Item::activeFocus} property. For example, here we have a \l Text
element whose text is determined by whether or not it has active focus.
-\snippet doc/src/snippets/declarative/focus/rectangle.qml active focus
+\snippet doc/src/snippets/qml/focus/rectangle.qml active focus
\section1 Acquiring Focus and Focus Scopes
@@ -82,7 +82,7 @@ sufficient. If we run the following example with the \l {QML Viewer}, we see tha
the \c {keyHandler} element has active focus and pressing the \c A, \c B,
or \c C keys modifies the text appropriately.
-\snippet doc/src/snippets/declarative/focus/basicwidget.qml focus true
+\snippet doc/src/snippets/qml/focus/basicwidget.qml focus true
\image declarative-qmlfocus1.png
@@ -95,10 +95,10 @@ set the first one to have focus. The intention is that when the \c A, \c B, or
responds accordingly.
The code that imports and creates two MyWidget instances:
-\snippet doc/src/snippets/declarative/focus/widget.qml window
+\snippet doc/src/snippets/qml/focus/widget.qml window
The MyWidget code:
-\snippet doc/src/snippets/declarative/focus/MyWidget.qml mywidget
+\snippet doc/src/snippets/qml/focus/MyWidget.qml mywidget
We would like to have the first MyWidget object to have the focus by setting its
\c focus property to \c true. However, by running the code, we can confirm that
@@ -126,7 +126,7 @@ A focus scope is created by declaring the \l FocusScope element.
In the next example, a \l FocusScope element is added to the component, and the
visual result shown.
-\snippet doc/src/snippets/declarative/focus/myfocusscopewidget.qml widget in focusscope
+\snippet doc/src/snippets/qml/focus/myfocusscopewidget.qml widget in focusscope
\image declarative-qmlfocus3.png
@@ -158,10 +158,10 @@ Now, clicking either MyClickableWidget gives it focus and the other widget
loses the focus.
The code that imports and creates two MyClickableWidget instances:
-\snippet doc/src/snippets/declarative/focus/clickablewidget.qml clickable window
+\snippet doc/src/snippets/qml/focus/clickablewidget.qml clickable window
The MyClickableWidget code:
-\snippet doc/src/snippets/declarative/focus/MyClickableWidget.qml clickable in focusscope
+\snippet doc/src/snippets/qml/focus/MyClickableWidget.qml clickable in focusscope
\image declarative-qmlfocus4.png
@@ -188,7 +188,7 @@ current item delegate to react to key presses.
This contrived example shows how this works. Pressing the \c Return key will
print the name of the current list item.
-\snippet doc/src/snippets/declarative/focus/advancedFocus.qml FocusScope delegate
+\snippet doc/src/snippets/qml/focus/advancedFocus.qml FocusScope delegate
\image declarative-qmlfocus5.png