]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/treeviewsidebarpage.h
differ between pasting one folder, pasting one file and pasting n items
[dolphin.git] / src / treeviewsidebarpage.h
index 978323f409ea4db16fac76bd5cee5eb33e9a29d6..a389077a94e7da64ca8aeaf40321abe72201f128 100644 (file)
@@ -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;