diff options
| author | Peter Penz <[email protected]> | 2007-02-17 06:29:17 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-02-17 06:29:17 +0000 |
| commit | 73a9e20701c4265dd9b56f9ecdd0012d6287c041 (patch) | |
| tree | 65434295ff0afaa20839ee756275af045296af3a /src | |
| parent | 546384562ae872614cd0c8fa568bd65ae41885da (diff) | |
Removed method 'int columnIndex(Sorting sorting) const'. The mapping is done outside the class DolphinView already.
svn path=/trunk/KDE/kdebase/apps/; revision=634392
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinview.cpp | 12 | ||||
| -rw-r--r-- | src/dolphinview.h | 5 |
2 files changed, 0 insertions, 17 deletions
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 @@ -479,11 +479,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(). */ |
