Changeset View
Changeset View
Standalone View
Standalone View
mobile/components/documentitem.cpp
Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Line(s) | |||||
176 | { | 176 | { | ||
177 | if (text.isEmpty()) { | 177 | if (text.isEmpty()) { | ||
178 | resetSearch(); | 178 | resetSearch(); | ||
179 | return; | 179 | return; | ||
180 | } | 180 | } | ||
181 | m_document->cancelSearch(); | 181 | m_document->cancelSearch(); | ||
182 | m_document->resetSearch(PAGEVIEW_SEARCH_ID); | 182 | m_document->resetSearch(PAGEVIEW_SEARCH_ID); | ||
183 | m_document->searchText(PAGEVIEW_SEARCH_ID, text, 1, Qt::CaseInsensitive, | 183 | m_document->searchText(PAGEVIEW_SEARCH_ID, text, 1, Qt::CaseInsensitive, | ||
184 | Okular::Document::AllDocument, true, QColor(100,100,200,40)); | 184 | Okular::Document::AllDocument, true, QColor(100,100,200,40), false); | ||
185 | 185 | | |||
186 | if (!m_searchInProgress) { | 186 | if (!m_searchInProgress) { | ||
187 | m_searchInProgress = true; | 187 | m_searchInProgress = true; | ||
188 | emit searchInProgressChanged(); | 188 | emit searchInProgressChanged(); | ||
189 | } | 189 | } | ||
190 | } | 190 | } | ||
191 | 191 | | |||
192 | void DocumentItem::resetSearch() | 192 | void DocumentItem::resetSearch() | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |