diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-08-05 15:04:03 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-08-05 13:19:26 +0000 |
commit | 43db88a5c5614bcab212be1e4703e001f1fbb295 (patch) | |
tree | 2f586c80c4d9d78c584c04832d0d44a2d03d2c03 /src/quick/items/qquickwindow.cpp | |
parent | 796b0cf366a6e6ab53fcb096e442261865ca397b (diff) |
QQuickEventPoint: replace Qt::TouchPointState with State enum
This allows extension later on, and makes it clear that the state is
for any kind of point, not just a touchpoint.
Change-Id: I1f8aaa01ea65ac1731645129fedcf7a51ee66e77
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/quick/items/qquickwindow.cpp')
-rw-r--r-- | src/quick/items/qquickwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp index 80d867a05c..64acfa4020 100644 --- a/src/quick/items/qquickwindow.cpp +++ b/src/quick/items/qquickwindow.cpp @@ -2179,7 +2179,7 @@ void QQuickWindowPrivate::deliverTouchEvent(QQuickPointerTouchEvent *event) int pointCount = event->pointCount(); for (int i = 0; i < pointCount; ++i) { QQuickEventPoint *point = event->point(i); - if (point->state() == Qt::TouchPointReleased) { + if (point->state() == QQuickEventPoint::Released) { int id = point->pointId(); qCDebug(DBG_TOUCH_TARGET) << "TP" << id << "released"; point->setGrabber(nullptr); |