From 371e718ec58fc4b5b611f05102f9e4d0f0544ac2 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 20 Apr 2011 22:10:18 +0200 Subject: Fix enabled/disabled issue of Search Panel --- src/panels/search/searchpanel.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/panels/search/searchpanel.h') diff --git a/src/panels/search/searchpanel.h b/src/panels/search/searchpanel.h index b92b692aa..ae34b20c6 100644 --- a/src/panels/search/searchpanel.h +++ b/src/panels/search/searchpanel.h @@ -42,7 +42,7 @@ class SearchPanel : public Panel Q_OBJECT public: - enum SearchMode + enum SearchLocation { Everywhere, FromCurrentDir @@ -56,8 +56,8 @@ public: * or from the current directory (= FromCurrentDir). The current directory * is automatically determined when setUrl() has been called. */ - void setSearchMode(SearchMode mode); - SearchMode searchMode() const; + void setSearchLocation(SearchLocation location); + SearchLocation searchLocation() const; signals: void urlActivated(const KUrl& url); @@ -83,7 +83,7 @@ private: * @return True if the facets can be applied to the given URL * and hence a filtering of the content is possible. * False is returned if the search-mode is set to - * SearchMode::FromCurrentDir and this directory is + * SearchLocation::FromCurrentDir and this directory is * not indexed at all. Also if indexing is disabled * false will be returned. */ @@ -91,7 +91,7 @@ private: private: bool m_initialized; - SearchMode m_searchMode; + SearchLocation m_searchLocation; KJob* m_lastSetUrlStatJob; KUrl m_startedFromDir; -- cgit v1.3.1