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/treeviewcontextmenu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/panels/folders/treeviewcontextmenu.h') diff --git a/src/panels/folders/treeviewcontextmenu.h b/src/panels/folders/treeviewcontextmenu.h index 598ffaed6..93ddd7aef 100644 --- a/src/panels/folders/treeviewcontextmenu.h +++ b/src/panels/folders/treeviewcontextmenu.h @@ -78,6 +78,12 @@ private slots: */ void setShowHiddenFiles(bool show); + /** + * Sets the 'Limit folders panel to home' setting for the + * folders panel to \a enable. + */ + void setLimitFoldersPanelToHome(bool enable); + /** * Sets the 'Automatic Scrolling' setting for the * folders panel to \a enable. -- cgit v1.3