diff options
| author | Peter Penz <[email protected]> | 2007-09-24 13:50:31 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-09-24 13:50:31 +0000 |
| commit | 772a55aafc2e558302d042eb65026b9b50302ccc (patch) | |
| tree | 5101245b249850864d5c82c243c75cd7043de129 /src/dolphinview.h | |
| parent | f78bac99094a9fe485d7ca8dac93654a807430f0 (diff) | |
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
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index 6799215e0..3f5b9f596 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -137,6 +137,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 * equal to DolphinView::url(), but in the case of the column view @@ -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<CutItem> m_cutItemsCache; + + KUrl m_rootUrl; }; #endif // DOLPHINVIEW_H |
