Beispiel #1
0
QWebHitTestResult QWebFrameProto::hitTestContent(const QPoint & pos) const
{
  scriptDeprecated("QWebFrame will not be available in future versions");
  QWebFrame *item = qscriptvalue_cast<QWebFrame*>(thisObject());
  if (item)
    return item->hitTestContent(pos);
  return QWebHitTestResult();
}
QWebHitTestResult WebkitPixelStreamer::performHitTest(const deflect::Event &dcEvent) const
{
    const QPoint& pointerPos = getPointerPosition(dcEvent);
    QWebFrame *pFrame = webView_.page()->frameAt(pointerPos);
    return pFrame ? pFrame->hitTestContent(pointerPos) : QWebHitTestResult();
}