diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2016-07-25 13:08:36 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2016-07-26 10:20:59 +0000 |
commit | 336374ce638fc68ec5946dedf4a3e951a78a3ff0 (patch) | |
tree | 12964163f18ef5cbdff30e82b23e49bae5eb4699 /src/quick/items/qquickevents.cpp | |
parent | 65156eace79562e8a4043268eb293fd4d1e14476 (diff) |
Add QQuickPointerEvent::unacceptedPressedPointScenePositions
Change-Id: Iecbd4e35faf733c6be84f760d4636d772188283c
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents.cpp')
-rw-r--r-- | src/quick/items/qquickevents.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/quick/items/qquickevents.cpp b/src/quick/items/qquickevents.cpp index a83f86017f..c3e2219cf8 100644 --- a/src/quick/items/qquickevents.cpp +++ b/src/quick/items/qquickevents.cpp @@ -662,6 +662,16 @@ QVector<QPointF> QQuickPointerEvent::unacceptedPointScenePositions() const return points; } +QVector<QPointF> QQuickPointerEvent::unacceptedPressedPointScenePositions() const +{ + QVector<QPointF> points; + for (int i = 0; i < pointCount(); ++i) { + if (!point(i)->isAccepted() && point(i)->state() == Qt::TouchPointPressed) + points << point(i)->scenePos(); + } + return points; +} + /*! \internal Populate the reusable synth-mouse event from one touchpoint. |