diff options
| author | Robert Hoffmann <[email protected]> | 2017-09-01 10:15:03 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2017-09-01 10:15:40 +0200 |
| commit | 94fab8c80ed60958043d13145aaf4c54412e052f (patch) | |
| tree | c5ea48b7829e6e100443127eea9420e975207616 /src/panels/folders/folderspanel.h | |
| parent | 652f57d28152491c42ad740d2bacd12a12d3d3d7 (diff) | |
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
Diffstat (limited to 'src/panels/folders/folderspanel.h')
| -rw-r--r-- | src/panels/folders/folderspanel.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. |
