From 862c090bf3be00b3016adfa5c7c0bd40ba409ca3 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 4 Mar 2007 00:40:14 +0000 Subject: Some basic fixes to stay synchronized between the tree view and the currently active view. svn path=/trunk/KDE/kdebase/apps/; revision=639008 --- src/treeviewsidebarpage.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/treeviewsidebarpage.h') diff --git a/src/treeviewsidebarpage.h b/src/treeviewsidebarpage.h index 1761d8c2b..045586bcc 100644 --- a/src/treeviewsidebarpage.h +++ b/src/treeviewsidebarpage.h @@ -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: /** -- cgit v1.3