Changeset View
Changeset View
Standalone View
Standalone View
src/search/dolphinsearchbox.h
Show All 18 Lines | |||||
19 | 19 | | |||
20 | #ifndef DOLPHINSEARCHBOX_H | 20 | #ifndef DOLPHINSEARCHBOX_H | ||
21 | #define DOLPHINSEARCHBOX_H | 21 | #define DOLPHINSEARCHBOX_H | ||
22 | 22 | | |||
23 | #include <QUrl> | 23 | #include <QUrl> | ||
24 | #include <QWidget> | 24 | #include <QWidget> | ||
25 | 25 | | |||
26 | class DolphinFacetsWidget; | 26 | class DolphinFacetsWidget; | ||
27 | class DolphinQuery; | ||||
27 | class QLineEdit; | 28 | class QLineEdit; | ||
28 | class KSeparator; | 29 | class KSeparator; | ||
29 | class QToolButton; | 30 | class QToolButton; | ||
30 | class QScrollArea; | 31 | class QScrollArea; | ||
31 | class QLabel; | 32 | class QLabel; | ||
32 | class QVBoxLayout; | 33 | class QVBoxLayout; | ||
33 | class KMoreToolsMenuFactory; | 34 | class KMoreToolsMenuFactory; | ||
34 | 35 | | |||
▲ Show 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | 144 | private: | |||
147 | void init(); | 148 | void init(); | ||
148 | 149 | | |||
149 | /** | 150 | /** | ||
150 | * @return URL that represents the Baloo query for starting the search. | 151 | * @return URL that represents the Baloo query for starting the search. | ||
151 | */ | 152 | */ | ||
152 | QUrl balooUrlForSearching() const; | 153 | QUrl balooUrlForSearching() const; | ||
153 | 154 | | |||
154 | /** | 155 | /** | ||
155 | * Extracts information from the given Baloo search \a url to | 156 | * Sets the searchbox UI with the parameters established by the \a queryModel | ||
elvisangelaccio: Also here (`\a query`). | |||||
156 | * initialize the search box properly. | | |||
157 | */ | 157 | */ | ||
158 | void fromBalooSearchUrl(const QUrl& url); | 158 | void updateFromQuery (const DolphinQuery& query); | ||
Since we renamed the class, this should be renamed too. updateFromQuery(const DolphinQuery *query) ? elvisangelaccio: Since we renamed the class, this should be renamed too. `updateFromQuery(const DolphinQuery… | |||||
159 | 159 | | |||
160 | void updateFacetsVisible(); | 160 | void updateFacetsVisible(); | ||
161 | 161 | | |||
162 | bool isIndexingEnabled() const; | 162 | bool isIndexingEnabled() const; | ||
163 | 163 | | |||
164 | private: | 164 | private: | ||
165 | bool m_startedSearching; | 165 | bool m_startedSearching; | ||
166 | bool m_active; | 166 | bool m_active; | ||
Show All 20 Lines |
Also here (\a query).