Changeset 86090 in webkit


Ignore:
Timestamp:
May 9, 2011 2:56:06 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-09 Igor Oliveira <igor.oliveira@openbossa.org>

Reviewed by Andreas Kling.

[Qt] DRT eventSender.addTouchPoint method is not setting the start position
https://bugs.webkit.org/show_bug.cgi?id=60487

When adding a new touch point, the start position of this point needs to be set.

  • DumpRenderTree/qt/EventSenderQt.cpp: (EventSender::addTouchPoint):
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r86086 r86090  
     12011-05-09  Igor Oliveira  <igor.oliveira@openbossa.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] DRT eventSender.addTouchPoint method is not setting the start position
     6        https://bugs.webkit.org/show_bug.cgi?id=60487
     7
     8        When adding a new touch point, the start position of this point needs to be set.
     9
     10        * DumpRenderTree/qt/EventSenderQt.cpp:
     11        (EventSender::addTouchPoint):
     12
    1132011-05-09  Robert Hogan  <robert@webkit.org>
    214
  • trunk/Tools/DumpRenderTree/qt/EventSenderQt.cpp

    r79049 r86090  
    395395void EventSender::addTouchPoint(int x, int y)
    396396{
    397     // Use index to refer to the position in the vector that this touch
    398     // is stored. We then create a unique id for the touch that will be
    399     // passed into WebCore.
    400     int index = m_touchPoints.count();
    401     int id = m_touchPoints.isEmpty() ? 0 : m_touchPoints.last().id() + 1;
     397    const int id = m_touchPoints.isEmpty() ? 0 : m_touchPoints.last().id() + 1;
     398    const QPointF pos(x, y);
    402399    QTouchEvent::TouchPoint point(id);
     400    point.setPos(pos);
     401    point.setStartPos(pos);
     402    point.setState(Qt::TouchPointPressed);
    403403    m_touchPoints.append(point);
    404     updateTouchPoint(index, x, y);
    405     m_touchPoints[index].setState(Qt::TouchPointPressed);
    406404}
    407405
Note: See TracChangeset for help on using the changeset viewer.