From 94fab8c80ed60958043d13145aaf4c54412e052f Mon Sep 17 00:00:00 2001 From: Robert Hoffmann Date: Fri, 1 Sep 2017 10:15:03 +0200 Subject: Limit folder panel to home directory if inside home Summary: Added the option to limit the displayed folders in the folder panel (F7) to the tree below the user's home directory if the current URL is inside the home directory. This can be configured in the preferences General/Behaviour tab by checking the corresponding check box. Reviewers: #dolphin, elvisangelaccio, emmanuelp Reviewed By: #dolphin, elvisangelaccio, emmanuelp Subscribers: emmanuelp, elvisangelaccio, #konqueror, #dolphin Differential Revision: https://phabricator.kde.org/D7477 --- src/panels/folders/folderspanel.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/panels/folders/folderspanel.h') diff --git a/src/panels/folders/folderspanel.h b/src/panels/folders/folderspanel.h index 7c591cc20..5f0b9a378 100644 --- a/src/panels/folders/folderspanel.h +++ b/src/panels/folders/folderspanel.h @@ -43,7 +43,9 @@ public: virtual ~FoldersPanel(); void setShowHiddenFiles(bool show); + void setLimitFoldersPanelToHome(bool enable); bool showHiddenFiles() const; + bool limitFoldersPanelToHome() const; void setAutoScrolling(bool enable); bool autoScrolling() const; @@ -81,6 +83,7 @@ private slots: */ void startFadeInAnimation(); + private: /** * Initializes the base URL of the tree and expands all @@ -89,6 +92,8 @@ private: */ void loadTree(const QUrl& url); + void reloadTree(); + /** * Sets the item with the index \a index as current item, selects * the item and assures that the item will be visible. -- cgit v1.3