From 29c5ab3b74d26657c60b40770676be082caa953d Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Mon, 20 Apr 2009 17:52:21 +0000 Subject: Let the user choose if folders are always shown first in the views of Dolphin and Konqueror (the default) or not. This setting can be changed in the View menu: "View->Sort By->Folders First". FEATURE: 62007 svn path=/trunk/KDE/kdebase/apps/; revision=956820 --- src/dolphincontroller.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/dolphincontroller.h') diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index 29dd7dfb1..f6abbb148 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -59,6 +59,7 @@ class QWidget; * - indicateDroppedUrls() * - indicateSortingChange() * - indicateSortOrderChanged() + * - indicateSortFoldersFirstChanged() * - triggerItem() * - requestTab() * - handleKeyPressEvent() @@ -164,6 +165,15 @@ public: */ void indicateSortOrderChange(Qt::SortOrder order); + /** + * Informs the abstract Dolphin view about a change between separate sorting + * (with folders first) and mixed sorting of files and folders done inside + * the view implementation. This method should be invoked by the view + * implementation (e. g. the details view uses this method in combination + * with the details header). + */ + void indicateSortFoldersFirstChange(bool foldersFirst); + /** * Informs the abstract Dolphin view about an additional information change * done inside the view implementation. This method should be invoked by the @@ -316,6 +326,14 @@ signals: */ void sortOrderChanged(Qt::SortOrder order); + /** + * Is emitted if 'sort folders first' has been changed to \a foldersFirst + * by the view implementation (see indicateSortOrderChanged(). + * The abstract Dolphin view connects + * to this signal to update its menu actions. + */ + void sortFoldersFirstChanged(bool foldersFirst); + /** * Is emitted if the additional info has been changed to \a info * by the view implementation. The abstract Dolphin view connects -- cgit v1.3