]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Removed method 'int columnIndex(Sorting sorting) const'. The mapping is done outside...
authorPeter Penz <peter.penz19@gmail.com>
Sat, 17 Feb 2007 06:29:17 +0000 (06:29 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 17 Feb 2007 06:29:17 +0000 (06:29 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=634392

src/dolphinview.cpp
src/dolphinview.h

index 920224583e21043f3c0127fd97021484275e9da7..abb0e9f86d554661592c95ff6397d9153a2c705a 100644 (file)
@@ -951,18 +951,6 @@ void DolphinView::createView()
             m_controller, SLOT(indicateSelectionChange()));
 }
 
-int DolphinView::columnIndex(Sorting sorting) const
-{
-    int index = 0;
-    switch (sorting) {
-        case SortByName: index = KDirModel::Name; break;
-        case SortBySize: index = KDirModel::Size; break;
-        case SortByDate: index = KDirModel::ModifiedTime; break;
-        default: assert(false);
-    }
-    return index;
-}
-
 void DolphinView::selectAll(QItemSelectionModel::SelectionFlags flags)
 {
     QItemSelectionModel* selectionModel = itemView()->selectionModel();
index 5b820fe8e631b02220afebc2420e4f366d7ee8e7..7d6e1288fb498efa3170134a392630bec68c48a3 100644 (file)
@@ -478,11 +478,6 @@ private:
      */
     void createView();
 
-    /**
-     * Returns the column index used in the KDirModel depending on \a sorting.
-     */
-    int columnIndex(Sorting sorting) const;
-
     /**
      * Selects all items by using the selection flags \a flags. This is a helper
      * method for the slots DolphinView::selectAll() and DolphinView::invertSelection().