bool QWebPageProto::findText(const QString & subString, QWebPage::FindFlags options) { QWebPage *item = qscriptvalue_cast<QWebPage*>(thisObject()); if (item) return item->findText(subString, options); return false; }
void dlgTextBrowser::slotFind() { find = 1; QString pattern = form->lineEditPattern->text(); QWebPage *page = form->textBrowser->page(); if(page == NULL) return; page->findText(pattern,QWebPage::FindWrapsAroundDocument); }
void dlgMyBrowser::slotFind() { if(opt.arg_debug) printf("dlgMyBrowser:slotFind()\n"); #ifdef USE_WEBKIT QString pattern = form->lineEditPattern->text(); QWebPage *page = form->browser->page(); if(page == NULL) return; page->findText(pattern,QWebPage::FindWrapsAroundDocument); #endif }