diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-07-29 05:12:17 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-07-29 05:14:03 (GMT) |
commit | d27e7484c8fcb08e0c533b9a8bf5af8d527b1de3 (patch) | |
tree | c1d167044f80ce3bdd7fa328f734b5d9ef4e92d7 /src/declarative/graphicsitems/qdeclarativegridview.cpp | |
parent | 5d5feaa86f3933a1e89b53267953b86e2b0459ed (diff) | |
download | Qt-d27e7484c8fcb08e0c533b9a8bf5af8d527b1de3.zip Qt-d27e7484c8fcb08e0c533b9a8bf5af8d527b1de3.tar.gz Qt-d27e7484c8fcb08e0c533b9a8bf5af8d527b1de3.tar.bz2 |
Document elements that are focus scopes.
Task-number: QTBUG-12404
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativegridview.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp index 89b3958..f02ef6b 100644 --- a/src/declarative/graphicsitems/qdeclarativegridview.cpp +++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp @@ -1085,13 +1085,15 @@ void QDeclarativeGridViewPrivate::flick(AxisData &data, qreal minExtent, qreal m \c portrait data directly. An improved grid view is shown below. The delegate is visually improved and is moved - into a separate \c contactDelegate component. Also, the currently selected item is highlighted - with a blue \l Rectangle using the \l highlight property, and \c focus is set to \c true - to enable keyboard navigation for the grid view. + into a separate \c contactDelegate component. \snippet doc/src/snippets/declarative/gridview/gridview.qml classdocs advanced \image gridview-highlight.png + The currently selected item is highlighted with a blue \l Rectangle using the \l highlight property, + and \c focus is set to \c true to enable keyboard navigation for the grid view. + The grid view itself is a focus scope (see \l{qmlfocus#Acquiring Focus and Focus Scopes}{the focus documentation page} for more details). + Delegates are instantiated as needed and may be destroyed at any time. State should \e never be stored in a delegate. |