From 772a55aafc2e558302d042eb65026b9b50302ccc Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 24 Sep 2007 13:50:31 +0000 Subject: Restore the root URL when navigating through the history (this is important for views like the column view where the root URL might differ from the current URL). svn path=/trunk/KDE/kdebase/apps/; revision=716310 --- src/dolphinview.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 6799215e0..3f5b9f596 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -136,6 +136,11 @@ public: */ const KUrl& url() const; + /** + * Sets the root URL of the view (see also DolphinView::rootUrl()) + */ + void setRootUrl(const KUrl& url); + /** * Returns the root URL of the view, which is defined as the first * visible path of DolphinView::url(). Usually the root URL is @@ -388,6 +393,12 @@ signals: */ void errorMessage(const QString& msg); + /** + * Is emitted if the root URL of the view has been changed + * to \a url (see also DolphinView::rootUrl()). + */ + void rootUrlChanged(const KUrl& url); + protected: /** @see QWidget::mouseReleaseEvent */ virtual void mouseReleaseEvent(QMouseEvent* event); @@ -571,6 +582,8 @@ private: DolphinSortFilterProxyModel* m_proxyModel; QList m_cutItemsCache; + + KUrl m_rootUrl; }; #endif // DOLPHINVIEW_H -- cgit v1.3