┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/treeviewsidebarpage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/treeviewsidebarpage.h')
-rw-r--r--src/treeviewsidebarpage.h25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/treeviewsidebarpage.h b/src/treeviewsidebarpage.h
index c8aec9e4e..badc94484 100644
--- a/src/treeviewsidebarpage.h
+++ b/src/treeviewsidebarpage.h
@@ -42,13 +42,16 @@ class TreeViewSidebarPage : public SidebarPage
Q_OBJECT
public:
- TreeViewSidebarPage(DolphinMainWindow* mainWindow, QWidget* parent = 0);
+ TreeViewSidebarPage(QWidget* parent = 0);
virtual ~TreeViewSidebarPage();
-protected:
- /** @see SidebarPage::activeViewChanged() */
- virtual void activeViewChanged();
+public slots:
+ /**
+ * Changes the current selection inside the tree to \a url.
+ */
+ void setUrl(const KUrl& url);
+protected:
/** @see QWidget::showEvent() */
virtual void showEvent(QShowEvent* event);
@@ -57,12 +60,6 @@ protected:
private slots:
/**
- * Updates the current selection inside the tree to
- * \a url.
- */
- void updateSelection(const KUrl& url);
-
- /**
* Expands the tree in a way that the item with the URL m_selectedUrl
* gets visible. Is called by TreeViewSidebarPage::updateSelection()
* if the dir lister has been completed.
@@ -82,18 +79,10 @@ private slots:
const QModelIndex& index);
private:
- /**
- * Connects to signals from the currently active Dolphin view to get
- * informed about highlighting changes.
- */
- void connectToActiveView();
-
-private:
KDirLister* m_dirLister;
KDirModel* m_dirModel;
DolphinSortFilterProxyModel* m_proxyModel;
SidebarTreeView* m_treeView;
- KUrl m_selectedUrl;
};
#endif // TREEVIEWSIDEBARPAGE_H