summaryrefslogtreecommitdiffstats
path: root/examples/widgets/touch/fingerpaint/scribblearea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/touch/fingerpaint/scribblearea.cpp')
-rw-r--r--examples/widgets/touch/fingerpaint/scribblearea.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/widgets/touch/fingerpaint/scribblearea.cpp b/examples/widgets/touch/fingerpaint/scribblearea.cpp
index 7af565ff30..2e6e532afb 100644
--- a/examples/widgets/touch/fingerpaint/scribblearea.cpp
+++ b/examples/widgets/touch/fingerpaint/scribblearea.cpp
@@ -196,11 +196,11 @@ bool ScribbleArea::event(QEvent *event)
case QEvent::TouchEnd:
{
const QTouchEvent *touch = static_cast<QTouchEvent *>(event);
- const QList<QTouchEvent::TouchPoint> touchPoints = static_cast<QTouchEvent *>(event)->touchPoints();
+ const auto touchPoints = static_cast<QTouchEvent *>(event)->points();
for (const QTouchEvent::TouchPoint &touchPoint : touchPoints) {
switch (touchPoint.state()) {
- case Qt::TouchPointStationary:
- case Qt::TouchPointReleased:
+ case QEventPoint::Stationary:
+ case QEventPoint::Released:
// don't do anything if this touch point hasn't moved or has been released
continue;
default: