diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-09-30 03:25:47 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-09-30 03:25:47 (GMT) |
commit | 452c49a6e238e8069583933acf8a2b8f3ee33c31 (patch) | |
tree | 54c95eae8a980a52d9d2184f5c6d0e0e453ac0d6 /src/declarative/fx/qfxlistview.cpp | |
parent | 4dc235f50a686d40bc63d7108027145f23d2c18a (diff) | |
download | Qt-452c49a6e238e8069583933acf8a2b8f3ee33c31.zip Qt-452c49a6e238e8069583933acf8a2b8f3ee33c31.tar.gz Qt-452c49a6e238e8069583933acf8a2b8f3ee33c31.tar.bz2 |
Allow GridView key navigation to be overridden.
Also add GridView example.
Diffstat (limited to 'src/declarative/fx/qfxlistview.cpp')
-rw-r--r-- | src/declarative/fx/qfxlistview.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxlistview.cpp b/src/declarative/fx/qfxlistview.cpp index 3584892..71fa2ea 100644 --- a/src/declarative/fx/qfxlistview.cpp +++ b/src/declarative/fx/qfxlistview.cpp @@ -1372,6 +1372,12 @@ void QFxListView::keyPressEvent(QKeyEvent *event) event->ignore(); } +/*! + \qmlmethod ListView::incrementCurrentIndex + + Increments the current index. The current index will wrap + if keyNavigationWraps is true and it is currently at the end. +*/ void QFxListView::incrementCurrentIndex() { Q_D(QFxListView); @@ -1381,6 +1387,12 @@ void QFxListView::incrementCurrentIndex() } } +/*! + \qmlmethod ListView::decrementCurrentIndex + + Decrements the current index. The current index will wrap + if keyNavigationWraps is true and it is currently at the beginning. +*/ void QFxListView::decrementCurrentIndex() { Q_D(QFxListView); |