Changeset 86090 in webkit
- Timestamp:
- May 9, 2011 2:56:06 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r86086 r86090 1 2011-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 1 13 2011-05-09 Robert Hogan <robert@webkit.org> 2 14 -
trunk/Tools/DumpRenderTree/qt/EventSenderQt.cpp
r79049 r86090 395 395 void EventSender::addTouchPoint(int x, int y) 396 396 { 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); 402 399 QTouchEvent::TouchPoint point(id); 400 point.setPos(pos); 401 point.setStartPos(pos); 402 point.setState(Qt::TouchPointPressed); 403 403 m_touchPoints.append(point); 404 updateTouchPoint(index, x, y);405 m_touchPoints[index].setState(Qt::TouchPointPressed);406 404 } 407 405
Note: See TracChangeset
for help on using the changeset viewer.