From: Peter Penz Date: Sat, 17 Feb 2007 06:29:17 +0000 (+0000) Subject: Removed method 'int columnIndex(Sorting sorting) const'. The mapping is done outside... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/73a9e20701c4265dd9b56f9ecdd0012d6287c041 Removed method 'int columnIndex(Sorting sorting) const'. The mapping is done outside the class DolphinView already. svn path=/trunk/KDE/kdebase/apps/; revision=634392 --- diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 920224583..abb0e9f86 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -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(); diff --git a/src/dolphinview.h b/src/dolphinview.h index 5b820fe8e..7d6e1288f 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -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().