diff options
| author | Rafael Fernández López <[email protected]> | 2007-06-27 23:23:41 +0000 |
|---|---|---|
| committer | Rafael Fernández López <[email protected]> | 2007-06-27 23:23:41 +0000 |
| commit | ba6c853219c78e4e2a491d416b94e4e4c1aef591 (patch) | |
| tree | 010ada523bfb7e7fd4f1a2de3fe12f1727dc80fd | |
| parent | c05153ac9b8bf19c05ef28a86b0785ea6799d901 (diff) | |
Add needed method for keyboard navigation
svn path=/trunk/KDE/kdebase/apps/; revision=681118
| -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, |
