diff options
| author | Vishesh Handa <[email protected]> | 2014-03-30 20:33:53 +0200 |
|---|---|---|
| committer | Vishesh Handa <[email protected]> | 2014-03-30 20:33:53 +0200 |
| commit | 2849f71ba04025abcc9fa6b25bd95b36fec09280 (patch) | |
| tree | 3a532f5a17e0c5f18d03759ee0b7abc5fac8eec2 /src/search/dolphinsearchbox.h | |
| parent | 6c437c12917981829626bef6ff22c8c729357266 (diff) | |
| parent | 5d63b9a111e6ae76ff7b9f5ba9cd26be873aa115 (diff) | |
Merge branch 'KDE/4.13'
Diffstat (limited to 'src/search/dolphinsearchbox.h')
| -rw-r--r-- | src/search/dolphinsearchbox.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h index 6dc09f19e..53b12ffab 100644 --- a/src/search/dolphinsearchbox.h +++ b/src/search/dolphinsearchbox.h @@ -72,20 +72,15 @@ public: KUrl urlForSearching() const; /** - * Selects the whole text of the search box. + * Extracts information from the given search \a url to + * initialize the search box properly. */ - void selectAll(); + void fromSearchUrl(const KUrl& url); /** - * @param readOnly If set to true the searchbox cannot be modified - * by the user and acts as visual indicator for - * an externally triggered search query. - * @param query If readOnly is true this URL will be used - * to show a human readable information about the - * query. + * Selects the whole text of the search box. */ - void setReadOnly(bool readOnly, const KUrl& query = KUrl()); - bool isReadOnly() const; + void selectAll(); /** * Set the search box to the active mode, if \a active @@ -155,12 +150,15 @@ private: */ KUrl balooUrlForSearching() const; - void applyReadOnlyState(); + /** + * Extracts information from the given Baloo search \a url to + * initialize the search box properly. + */ + void fromBalooSearchUrl(const KUrl& url); void updateFacetsToggleButton(); private: bool m_startedSearching; - bool m_readOnly; bool m_active; QVBoxLayout* m_topLayout; @@ -177,7 +175,6 @@ private: DolphinFacetsWidget* m_facetsWidget; KUrl m_searchPath; - KUrl m_readOnlyQuery; QTimer* m_startSearchTimer; }; |
