From: Rafael Fernández López Date: Wed, 27 Jun 2007 23:23:41 +0000 (+0000) Subject: Add needed method for keyboard navigation X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/ba6c853219c78e4e2a491d416b94e4e4c1aef591 Add needed method for keyboard navigation svn path=/trunk/KDE/kdebase/apps/; revision=681118 --- 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) diff --git a/src/klistview.h b/src/klistview.h index fc9599111..6626db3d5 100644 --- a/src/klistview.h +++ b/src/klistview.h @@ -72,6 +72,9 @@ protected: virtual void dragLeaveEvent(QDragLeaveEvent *event); + virtual QModelIndex moveCursor(CursorAction cursorAction, + Qt::KeyboardModifiers modifiers); + protected Q_SLOTS: virtual void rowsInserted(const QModelIndex &parent, int start,