From 6baba131b2e112c37015412b701bc3ea01a86c04 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 17 Mar 2007 20:42:26 +0000 Subject: Allow to cut, copy, paste, ... the currently selected item from a sidebar by the DolphinContextMenu (currently only used by the tree view). svn path=/trunk/KDE/kdebase/apps/; revision=643572 --- src/dolphinview.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/dolphinview.cpp') diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 994f03b6e..db9c740cc 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -460,6 +460,11 @@ bool DolphinView::hasSelection() const return itemView()->selectionModel()->hasSelection(); } +void DolphinView::clearSelection() +{ + itemView()->selectionModel()->clear(); +} + KFileItemList DolphinView::selectedItems() const { const QAbstractItemView* view = itemView(); -- cgit v1.3