From ba6c853219c78e4e2a491d416b94e4e4c1aef591 Mon Sep 17 00:00:00 2001 From: Rafael Fernández López Date: Wed, 27 Jun 2007 23:23:41 +0000 Subject: Add needed method for keyboard navigation svn path=/trunk/KDE/kdebase/apps/; revision=681118 --- src/klistview.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/klistview.cpp') diff --git a/src/klistview.cpp b/src/klistview.cpp index 821522b78..e484c3fb3 100644 --- a/src/klistview.cpp +++ b/src/klistview.cpp @@ -915,6 +915,18 @@ void KListView::dragLeaveEvent(QDragLeaveEvent *event) viewport()->update(); } +QModelIndex KListView::moveCursor(CursorAction cursorAction, + Qt::KeyboardModifiers modifiers) +{ + if ((viewMode() != KListView::IconMode) || !d->proxyModel || + !d->itemCategorizer) + { + return QListView::moveCursor(cursorAction, modifiers); + } + + return QListView::moveCursor(cursorAction, modifiers); +} + void KListView::rowsInserted(const QModelIndex &parent, int start, int end) -- cgit v1.3