diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-07-20 03:41:00 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-07-21 05:28:54 (GMT) |
commit | 481e52e1ef66abc583527624fdbeb1d25d97a6c7 (patch) | |
tree | 993d4a030e030e840dba4228b0eca546e4001ac7 /src/declarative/graphicsitems/qdeclarativegridview.cpp | |
parent | cc6980310b097701e8f8026393715d802ac6f9ba (diff) | |
download | Qt-481e52e1ef66abc583527624fdbeb1d25d97a6c7.zip Qt-481e52e1ef66abc583527624fdbeb1d25d97a6c7.tar.gz Qt-481e52e1ef66abc583527624fdbeb1d25d97a6c7.tar.bz2 |
Indicate default values
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativegridview.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp index 14a4f08..89b3958 100644 --- a/src/declarative/graphicsitems/qdeclarativegridview.cpp +++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp @@ -1293,9 +1293,15 @@ void QDeclarativeGridView::setDelegate(QDeclarativeComponent *delegate) \qmlproperty int GridView::currentIndex \qmlproperty Item GridView::currentItem - \c currentIndex holds the index of the current item. - \c currentItem is the current item. Note that the position of the current item - may only be approximate until it becomes visible in the view. + The \c currentIndex property holds the index of the current item, and + \c currentItem holds the current item. + + If highlightFollowsCurrentItem is \c true, setting either of these + properties will smoothly scroll the GridView so that the current + item becomes visible. + + Note that the position of the current item + may only be approximate until it becomes visible in the view. */ int QDeclarativeGridView::currentIndex() const { @@ -1385,7 +1391,7 @@ void QDeclarativeGridView::setHighlight(QDeclarativeComponent *highlight) \qmlproperty bool GridView::highlightFollowsCurrentItem This property sets whether the highlight is managed by the view. - If this property is true, the highlight is moved smoothly + If this property is true (the default value), the highlight is moved smoothly to follow the current item. Otherwise, the highlight is not moved by the view, and any movement must be implemented by the highlight. @@ -1568,6 +1574,8 @@ void QDeclarativeGridView::setFlow(Flow flow) If this is true, key navigation that would move the current item selection past one end of the view instead wraps around and moves the selection to the other end of the view. + + By default, key navigation is not wrapped. */ bool QDeclarativeGridView::isWrapEnabled() const { |