예제 #1
0
bool QWebPageProto::findText(const QString & subString, QWebPage::FindFlags options)
{
  QWebPage *item = qscriptvalue_cast<QWebPage*>(thisObject());
  if (item)
    return item->findText(subString, options);
  return false;
}
예제 #2
0
void dlgTextBrowser::slotFind()
{
  find = 1;
  QString pattern = form->lineEditPattern->text();
  QWebPage *page = form->textBrowser->page();
  if(page == NULL) return;
  page->findText(pattern,QWebPage::FindWrapsAroundDocument);
}
예제 #3
0
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
}