diff options
author | Janne Anttila <janne.anttila@digia.com> | 2010-02-25 09:28:47 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2010-02-25 11:46:56 (GMT) |
commit | d8465414e6fd543cfc20e732030dedd8d2bc685f (patch) | |
tree | 1075f00a121c2f9de241dc2e561332c7d7ff93db /demos/embedded | |
parent | 68c909373d96f61f1a06cfb486df320e56b2e75a (diff) | |
download | Qt-d8465414e6fd543cfc20e732030dedd8d2bc685f.zip Qt-d8465414e6fd543cfc20e732030dedd8d2bc685f.tar.gz Qt-d8465414e6fd543cfc20e732030dedd8d2bc685f.tar.bz2 |
Improvements to itemview keypad navigation in S60.
The logic used in this commit is partially taken from sliders.
This commit makes it possible to interact (change row or column)
in itemview even itemview does not have editFocus. Interacting without
editFocus is enabled when it is not possible to keypad navigate to
reuqested direction. In addition if keypad navigation to any direction is
not possible (i.e there is only one listwidget on screen), there is no
sense to add "done" softkey to get out of edit focus.
Task-number: QTBUG-4802
Reviewed-by: Alessandro Portale
Diffstat (limited to 'demos/embedded')
-rw-r--r-- | demos/embedded/desktopservices/contenttab.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/demos/embedded/desktopservices/contenttab.cpp b/demos/embedded/desktopservices/contenttab.cpp index 8714b9c..fa9c586 100644 --- a/demos/embedded/desktopservices/contenttab.cpp +++ b/demos/embedded/desktopservices/contenttab.cpp @@ -114,20 +114,6 @@ QUrl ContentTab::itemUrl(QListWidgetItem *item) void ContentTab::keyPressEvent(QKeyEvent *event) { switch (event->key()) { - case Qt::Key_Up: - if (currentRow() == 0) { - setCurrentRow(count() - 1); - } else { - setCurrentRow(currentRow() - 1); - } - break; - case Qt::Key_Down: - if (currentRow() == (count() - 1)) { - setCurrentRow(0); - } else { - setCurrentRow(currentRow() + 1); - } - break; case Qt::Key_Select: openItem(currentItem()); default: |