Add comments to touchEventForItem and touchEventWithPoints

Change-Id: I7f491319af87c7b026ecf071d99766ddd1496388
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
Frederik Gladhorn 2016-07-01 16:20:39 +02:00 committed by Frederik Gladhorn
parent a669a2cd49
commit e00b9df034
1 changed files with 2 additions and 0 deletions

View File

@ -2309,6 +2309,7 @@ bool QQuickWindowPrivate::deliverMatchingPointsToItem(QQuickItem *item, QTouchEv
return touchEventAccepted;
}
// create touch event containing only points inside the target item
QTouchEvent *QQuickWindowPrivate::touchEventForItem(QQuickItem *target, const QTouchEvent &originalEvent, bool alwaysCheckBounds)
{
const QList<QTouchEvent::TouchPoint> &touchPoints = originalEvent.touchPoints();
@ -2336,6 +2337,7 @@ QTouchEvent *QQuickWindowPrivate::touchEventForItem(QQuickItem *target, const QT
return touchEvent;
}
// copy a touch event's basic properties but give it new touch points
QTouchEvent *QQuickWindowPrivate::touchEventWithPoints(const QTouchEvent &event, const QList<QTouchEvent::TouchPoint> &newPoints)
{
Qt::TouchPointStates eventStates;