X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/7ac3ed4e749789ae348a80638cc18906c697b306..bd925ea49a7e4e7c6e652f4529dcd0c4e25fd19a:/src/treeviewsidebarpage.h diff --git a/src/treeviewsidebarpage.h b/src/treeviewsidebarpage.h index 978323f40..a389077a9 100644 --- a/src/treeviewsidebarpage.h +++ b/src/treeviewsidebarpage.h @@ -99,6 +99,11 @@ private slots: */ void loadSubTree(); + /** + * Assures that the leaf folder gets visible. + */ + void scrollToLeaf(); + private: /** * Initializes the base URL of the tree and expands all @@ -107,8 +112,16 @@ private: */ void loadTree(const KUrl& url); + /** + * Selects the current leaf directory m_leafDir and assures + * that the directory is visible if the leaf has been set by + * TreeViewSidebarPage::setUrl(). + */ + void selectLeafDirectory(); + private: - bool m_dirListerCompleted; + bool m_setLeafVisible; + int m_horizontalPos; KDirLister* m_dirLister; DolphinModel* m_dolphinModel; DolphinSortFilterProxyModel* m_proxyModel;