Bug 30712
Summary: | [Qt] QWebFrame should have a equivalent of QWebFrame::hitTestContent() for QRectF | ||
---|---|---|---|
Product: | WebKit | Reporter: | Benjamin Poulain <benjamin> |
Component: | WebKit Qt | Assignee: | Benjamin Poulain <benjamin> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Enhancement | CC: | abecsi, benjamin, hausmann, kenneth, laszlo.gombos, tonikitoo |
Priority: | P2 | Keywords: | Qt |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | |||
Bug Blocks: | 31552 |
Benjamin Poulain
QWebFrame::hitTestContent() uses a QPoint which is appropriate for mouse usage.
For touch-based implementation of the view, a similar function is needed to get all the widgets inside a rect.
QTouchEvent return a list of TouchPoints. Those TouchPoints have the function TouchPoint::rect() to get the rect corresponding to the area taken by the finger. It is useful to use that rect to find a link, or a node that can deal with the click.
The function could be something like
QList<QWebElement> elementsForRect(QRectF).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kenneth Rohde Christiansen
Sounds like a good idea, though we should think a bit more about the API. Is this needed for 4.6?
Benjamin Poulain
This could be for Qt 4.7. There is a few functions we could add in order to improve the handling of QTouchEvent. It is too late to add this in 4.6.
Simon Hausmann
This relates to the following requirement: http://bugreports.qt.nokia.com/browse/QTWEBKIT-13
Benjamin Poulain
This is no longer the plans. Sampling over the rect should do the trick.
Benjamin Poulain
*** This bug has been marked as a duplicate of bug 36111 ***