Add comments to touchEventForItem and touchEventWithPoints
Change-Id: I7f491319af87c7b026ecf071d99766ddd1496388 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
parent
a669a2cd49
commit
e00b9df034
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue