diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/klistview.cpp | 12 | ||||
| -rw-r--r-- | src/klistview.h | 3 |
2 files changed, 15 insertions, 0 deletions
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, |
