<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>30712</bug_id>
          
          <creation_ts>2009-10-23 02:42:44 -0700</creation_ts>
          <short_desc>[Qt] QWebFrame should have a equivalent of QWebFrame::hitTestContent() for QRectF</short_desc>
          <delta_ts>2010-03-16 04:48:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>36111</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>31552</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Poulain">benjamin</reporter>
          <assigned_to name="Benjamin Poulain">benjamin</assigned_to>
          <cc>abecsi</cc>
    
    <cc>benjamin</cc>
    
    <cc>hausmann</cc>
    
    <cc>kenneth</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157128</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2009-10-23 02:42:44 -0700</bug_when>
    <thetext>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&lt;QWebElement&gt; elementsForRect(QRectF).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157815</commentid>
    <comment_count>1</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2009-10-26 10:28:47 -0700</bug_when>
    <thetext>Sounds like a good idea, though we should think a bit more about the API. Is this needed for 4.6?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157839</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2009-10-26 11:42:42 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>168332</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2009-12-03 02:24:16 -0800</bug_when>
    <thetext>This relates to the following requirement: http://bugreports.qt.nokia.com/browse/QTWEBKIT-13</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188976</commentid>
    <comment_count>4</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-02-09 05:38:42 -0800</bug_when>
    <thetext>This is no longer the plans. Sampling over the rect should do the trick.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200125</commentid>
    <comment_count>5</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-03-16 04:48:20 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 36111 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>