summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxlistview.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-08-12 01:31:25 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-08-12 01:31:25 (GMT)
commit6fc7ce61ba1b623421ca3ca8ee2315746be0a37b (patch)
tree6ea9c57eaca6996a2e842604b50df1b224941c96 /src/declarative/fx/qfxlistview.cpp
parent14466ace2ffe1b6707b1120ab76d0baa49635007 (diff)
downloadQt-6fc7ce61ba1b623421ca3ca8ee2315746be0a37b.zip
Qt-6fc7ce61ba1b623421ca3ca8ee2315746be0a37b.tar.gz
Qt-6fc7ce61ba1b623421ca3ca8ee2315746be0a37b.tar.bz2
Change key handling to use a Keys attached property.
Replaces KeyAction, allowing focus to be set on the actual item that wants focus, rather than a separate handler item.
Diffstat (limited to 'src/declarative/fx/qfxlistview.cpp')
-rw-r--r--src/declarative/fx/qfxlistview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxlistview.cpp b/src/declarative/fx/qfxlistview.cpp
index 860e9e4..9e08b69 100644
--- a/src/declarative/fx/qfxlistview.cpp
+++ b/src/declarative/fx/qfxlistview.cpp
@@ -1362,7 +1362,8 @@ void QFxListView::keyPressEvent(QKeyEvent *event)
}
}
d->moveReason = QFxListViewPrivate::Other;
- QFxFlickable::keyPressEvent(event);
+ if (!event->isAccepted())
+ QFxFlickable::keyPressEvent(event);
}
void QFxListView::componentComplete()