diff options
| author | Frank Reininghaus <[email protected]> | 2009-04-20 17:52:21 +0000 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2009-04-20 17:52:21 +0000 |
| commit | 29c5ab3b74d26657c60b40770676be082caa953d (patch) | |
| tree | ea6440883b7c1a12a9ee14b78217f481d10986e9 /src/dolphinview.h | |
| parent | f6e3d851334e14a05f5e1a7b281a7101a12d43bb (diff) | |
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
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index 385bcd50f..1df268ad7 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -267,6 +267,12 @@ public: /** Returns the current used sort order (Qt::Ascending or Qt::Descending). */ Qt::SortOrder sortOrder() const; + /** Sets a separate sorting with folders first (true) or a mixed sorting of files and folders (false). */ + void setSortFoldersFirst(bool foldersFirst); + + /** Returns if files and folders are sorted separately or not. */ + bool sortFoldersFirst() const; + /** Sets the additional information which should be shown for the items. */ void setAdditionalInfo(KFileItemDelegate::InformationList info); @@ -422,6 +428,9 @@ public slots: /** Switches between an ascending and descending sorting order. */ void toggleSortOrder(); + /** Switches between a separate sorting (with folders first) and a mixed sorting of files and folders. */ + void toggleSortFoldersFirst(); + /** * Switches on or off the displaying of additional information * as specified by \a action. @@ -474,6 +483,9 @@ signals: /** Is emitted if the sort order (ascending or descending) has been changed. */ void sortOrderChanged(Qt::SortOrder order); + /** Is emitted if the sorting of files and folders (separate with folders first or mixed) has been changed. */ + void sortFoldersFirstChanged(bool foldersFirst); + /** Is emitted if the additional information shown for this view has been changed. */ void additionalInfoChanged(); @@ -588,6 +600,12 @@ private slots: /** * Updates the view properties of the current URL to the + * sorting of files and folders (separate with folders first or mixed) given by \a foldersFirst. + */ + void updateSortFoldersFirst(bool foldersFirst); + + /** + * Updates the view properties of the current URL to the * additional information given by \a info. */ void updateAdditionalInfo(const KFileItemDelegate::InformationList& info); |
