┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistcontainer.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2011-08-10 14:30:32 +0200
committerFrank Reininghaus <[email protected]>2011-08-10 14:30:32 +0200
commit6d6fe76dcf46ae71e31d730981118cdcddb16f8b (patch)
treef70ce739ecf9fb35b22f561f9f745b9ec62e5964 /src/kitemviews/kitemlistcontainer.h
parent2e3b7e6dd3b051b3d9cb9799e1dd22f8376d2957 (diff)
Make sure that key presses are handled in KItemListController
Key press events are forwarded from KItemListContainer to KItemListController. Right now, only the 'Home' and 'End' keys are handled (arrow keys require some more work because their action depends on the view mode). Note: 1. Before key presses are handled, the view has to be clicked with the mouse. It seems that the view does not have the keyboard focus initially. 2. The view does not scroll to the new current item yet.
Diffstat (limited to 'src/kitemviews/kitemlistcontainer.h')
-rw-r--r--src/kitemviews/kitemlistcontainer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistcontainer.h b/src/kitemviews/kitemlistcontainer.h
index 4994eb249..e71a7b083 100644
--- a/src/kitemviews/kitemlistcontainer.h
+++ b/src/kitemviews/kitemlistcontainer.h
@@ -49,6 +49,7 @@ public:
KItemListController* controller() const;
protected:
+ virtual void keyPressEvent(QKeyEvent* event);
virtual void showEvent(QShowEvent* event);
virtual void resizeEvent(QResizeEvent* event);
virtual void scrollContentsBy(int dx, int dy);