From ae488b13186a4cb5d0bc5d7f23b07467d6638979 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 20 Apr 2011 20:03:51 +0200 Subject: Improve usability of Search Panel If the Search Panel is shown outside the context of the "Find" mode it will be always enabled and does a global search. Only if the user is in the "Find" mode and the searching is restricted to the current directory the Search Panel might get disabled if the current directory is not indexed. This solves the major usability issue that it was not clear for the users whether a global or restricted search is done. --- src/dolphinviewcontainer.h | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) (limited to 'src/dolphinviewcontainer.h') diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index 82b105a4a..37b06b7d6 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -80,6 +80,9 @@ public: const DolphinView* view() const; DolphinView* view(); + const DolphinSearchBox* searchBox() const; + DolphinSearchBox* searchBox(); + /** * Refreshes the view container to get synchronized with the (updated) Dolphin settings. */ @@ -277,34 +280,4 @@ private: QElapsedTimer m_statusBarTimestamp; // Time in ms since last update }; -inline const DolphinStatusBar* DolphinViewContainer::statusBar() const -{ - return m_statusBar; -} - -inline DolphinStatusBar* DolphinViewContainer::statusBar() -{ - return m_statusBar; -} - -inline const KUrlNavigator* DolphinViewContainer::urlNavigator() const -{ - return m_urlNavigator; -} - -inline KUrlNavigator* DolphinViewContainer::urlNavigator() -{ - return m_urlNavigator; -} - -inline const DolphinView* DolphinViewContainer::view() const -{ - return m_view; -} - -inline DolphinView* DolphinViewContainer::view() -{ - return m_view; -} - #endif // DOLPHINVIEWCONTAINER_H -- cgit v1.3