summaryrefslogtreecommitdiffstats
path: root/demos/embedded
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2010-02-25 09:28:47 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2010-02-25 11:46:56 (GMT)
commitd8465414e6fd543cfc20e732030dedd8d2bc685f (patch)
tree1075f00a121c2f9de241dc2e561332c7d7ff93db /demos/embedded
parent68c909373d96f61f1a06cfb486df320e56b2e75a (diff)
downloadQt-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.cpp14
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: