X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/0e5e43aa9d84b2a38db99c469de91e4de8017fc7..87e8d0ba5f:/src/dolphinviewcontainer.h diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index 0b6a76d5e..837b168d7 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -70,7 +70,7 @@ public: }; DolphinViewContainer(const QUrl& url, QWidget* parent); - virtual ~DolphinViewContainer(); + ~DolphinViewContainer() override; /** * Returns the current active URL, where all actions are applied. @@ -93,6 +93,8 @@ public: void setAutoGrabFocus(bool grab); bool autoGrabFocus() const; + QString currentSearchText() const; + const DolphinStatusBar* statusBar() const; DolphinStatusBar* statusBar(); @@ -244,12 +246,6 @@ private slots: */ void activate(); - /** - * Is invoked if the signal urlAboutToBeChanged() from the DolphinView - * is emitted. Tries to save the view-state. - */ - void slotViewUrlAboutToBeChanged(const QUrl& url); - /** * Is invoked if the signal urlAboutToBeChanged() from the URL navigator * is emitted. Tries to save the view-state. @@ -262,6 +258,11 @@ private slots: */ void slotUrlNavigatorLocationChanged(const QUrl& url); + /** + * @see KUrlNavigator::urlSelectionRequested + */ + void slotUrlSelectionRequested(const QUrl& url); + /** * Is invoked when a redirection is done and changes the * URL of the URL navigator to \a newUrl without triggering @@ -278,8 +279,6 @@ private slots: */ void saveUrlCompletionMode(KCompletion::CompletionMode completion); - void slotHistoryChanged(); - void slotReturnPressed(); /** @@ -313,6 +312,12 @@ private: */ void saveViewState(); + /** + * Restores the state of the current view iff the URL navigator contains a + * non-empty location state. + */ + void tryRestoreViewState(); + private: QVBoxLayout* m_topLayout; KUrlNavigator* m_urlNavigator;