Switch to unified view

a/src/qtgui/snippets_w.cpp b/src/qtgui/snippets_w.cpp
...
...
171
    searchLE->setFocus();
171
    searchLE->setFocus();
172
}
172
}
173
173
174
void SnippetsW::slotEditFindNext()
174
void SnippetsW::slotEditFindNext()
175
{
175
{
176
    if (!searchFM->isVisible())
177
  slotEditFind();
178
176
#ifdef SNIPPETS_WEBKIT
179
#ifdef SNIPPETS_WEBKIT
177
    browser->findText(searchLE->text());
180
    browser->findText(searchLE->text());
178
#else
181
#else
179
    browser->find(searchLE->text(), 0);
182
    browser->find(searchLE->text(), 0);
180
#endif
183
#endif
181
184
182
}
185
}
183
void SnippetsW::slotEditFindPrevious()
186
void SnippetsW::slotEditFindPrevious()
184
{
187
{
188
    if (!searchFM->isVisible())
189
  slotEditFind();
190
185
#ifdef SNIPPETS_WEBKIT
191
#ifdef SNIPPETS_WEBKIT
186
    browser->findText(searchLE->text(), QWebPage::FindBackward);
192
    browser->findText(searchLE->text(), QWebPage::FindBackward);
187
#else
193
#else
188
    browser->find(searchLE->text(), QTextDocument::FindBackward);
194
    browser->find(searchLE->text(), QTextDocument::FindBackward);
189
#endif
195
#endif