]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/treeviewsidebarpage.h
Some basic fixes to stay synchronized between the tree view and the currently active...
[dolphin.git] / src / treeviewsidebarpage.h
index 1761d8c2b8f64f99314925d3f75a6168e307b527..045586bccf2edbb37b84850c9d1c29a2876d299b 100644 (file)
@@ -25,6 +25,8 @@
 class KDirLister;
 class KDirModel;
 class KUrl;
+
+class QModelIndex;
 class QTreeView;
 
 /**
@@ -42,12 +44,21 @@ protected:
     /** @see SidebarPage::activeViewChanged() */
     virtual void activeViewChanged();
 
+    /** @see QWidget::showEvent() */
+    virtual void showEvent(QShowEvent* event);
+
 private slots:
     /**
-     * Updates the current position inside the tree to
+     * Updates the current selection inside the tree to
      * \a url.
      */
-    void updatePosition(const KUrl& url);
+    void updateSelection(const KUrl& url);
+
+    /**
+     * Updates the URL of the active view to the URL
+     * which is given by the item with the index \a index.
+     */
+    void updateViewUrl(const QModelIndex& index);
 
 private:
     /**