From ab39a5952001cdb3d1b9ca693da7f8e246558fb8 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Wed, 25 Nov 2009 08:46:04 +0000 Subject: Restore the "Edit->Selection" menu from Konqueror 3 for file management. It includes the actions "Select All" and "Select Items Matching a Pattern". This feature will be in KDE 4.4. FEATURE: 197536 svn path=/trunk/KDE/kdebase/apps/; revision=1053976 --- src/dolphinview.h | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 0d3b15098..97054b754 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -181,24 +181,6 @@ public: */ bool supportsCategorizedSorting() const; - /** - * Selects all items. - * @see DolphinView::selectedItems() - */ - void selectAll(); - - /** - * Inverts the current selection: selected items get unselected, - * unselected items get selected. - * @see DolphinView::selectedItems() - */ - void invertSelection(); - - /** Returns true, if at least one item is selected. */ - bool hasSelection() const; - - void clearSelection(); - /** * Returns the selected items. The list is empty if no item has been * selected. @@ -219,6 +201,8 @@ public: */ int selectedItemsCount() const; + QItemSelectionModel* selectionModel() const; + /** * Sets the upper left position of the view content * to (x,y). The content of the view might be larger than the visible area @@ -381,6 +365,24 @@ public slots: */ void setUrl(const KUrl& url); + /** + * Selects all items. + * @see DolphinView::selectedItems() + */ + void selectAll(); + + /** + * Inverts the current selection: selected items get unselected, + * unselected items get selected. + * @see DolphinView::selectedItems() + */ + void invertSelection(); + + /** Returns true, if at least one item is selected. */ + bool hasSelection() const; + + void clearSelection(); + /** * Request of a selection change. The view will do its best to accommodate * the request, but it is not guaranteed that all items in \a selection -- cgit v1.3