summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxlistview.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-09-30 03:25:47 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-09-30 03:25:47 (GMT)
commit452c49a6e238e8069583933acf8a2b8f3ee33c31 (patch)
tree54c95eae8a980a52d9d2184f5c6d0e0e453ac0d6 /src/declarative/fx/qfxlistview.cpp
parent4dc235f50a686d40bc63d7108027145f23d2c18a (diff)
downloadQt-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.cpp12
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);