]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Add needed method for keyboard navigation
authorRafael Fernández López <ereslibre@kde.org>
Wed, 27 Jun 2007 23:23:41 +0000 (23:23 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Wed, 27 Jun 2007 23:23:41 +0000 (23:23 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=681118

src/klistview.cpp
src/klistview.h

index 821522b78760959afc70a21d22539692d73f16ab..e484c3fb31174e7281561a417e0480e454add4a7 100644 (file)
@@ -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)
index fc9599111e2781572a09de1f48449326b4e8666d..6626db3d57628dc329f2599a89bae71e1a25e55a 100644 (file)
@@ -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,