┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-04-20 20:03:51 +0200
committerPeter Penz <[email protected]>2011-04-20 20:09:08 +0200
commitae488b13186a4cb5d0bc5d7f23b07467d6638979 (patch)
treed50e891437d11d2e77ae5acafb9699bfcebe2102 /src/dolphinviewcontainer.h
parentf551f73ae65c1901c86bbf7d130552c4540f427f (diff)
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.
Diffstat (limited to 'src/dolphinviewcontainer.h')
-rw-r--r--src/dolphinviewcontainer.h33
1 files changed, 3 insertions, 30 deletions
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