Revision 8f9a859...

Go back to digest for 27th November 2011

Features in KDE Base

Peter Penz committed changes in [kde-baseapps] /src:

Folders Panel fixes

The following functionality from Dolphin 1.x has
been ported to the new view-engine:
- Allow expanding/collapsing of items
- Automatically select the current item
- Context menu for items

Related improvements to the view-engine:
- Make the expanding/collapsing interface already accessible
in the base classes KItemModelBase and KItemListView. If
no expanding/collapsing is supported at all by derived models
(which is usually the default case) simply not reimplementing
those 3 methods is sufficient and it does not introduce an
additional complexity like in QAbstractItemModel/QModelIndex.

- Automatically handle the expanding/collapsing in KItemListController.
This also includes the key-handling, which is quite special for
expandable items.

- Don't let KItemListView automatically scroll to the current item
if the current item got changed. The automatic scrolling should
only be done if the current item has been changed by the user.
Hence this functionality has been moved to the KItemListController
which currently only triggers the automatic scrolling if the current
item has been changed by the keyboard (we might extend the usecases
later if required).

File Changes

Deleted 3 files
  • /src
  •   dolphin/views/dolphinviewautoscroller.cpp
  •   dolphin/views/dolphinviewautoscroller.h
  •   dolphin/panels/folders/ktreeview_p.h
Modified 15 files
  • /src
  •   dolphin/CMakeLists.txt
  •   dolphin/kitemviews/kfileitemlistview.cpp
  •   dolphin/kitemviews/kfileitemlistview.h
  •   dolphin/kitemviews/kfileitemmodel.h
  •   dolphin/kitemviews/kitemlistcontroller.cpp
  •   dolphin/kitemviews/kitemlistview.cpp
  •   dolphin/kitemviews/kitemlistview.h
  •   dolphin/kitemviews/kitemmodelbase.cpp
  •   dolphin/kitemviews/kitemmodelbase.h
  •   dolphin/views/dolphinview.cpp
  •   dolphin/views/dolphinview.h
  •   dolphin/panels/folders/folderspanel.cpp
  •   dolphin/panels/folders/folderspanel.h
  •   dolphin/panels/folders/treeviewcontextmenu.cpp
  •   dolphin/panels/folders/treeviewcontextmenu.h
18 files changed in total