From af4397581a36e81767b120f46dfa0bcd6a34d0ba Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 14 Mar 2023 15:04:05 +0200 Subject: [PATCH] Fix warning about comparing different enums QEventPoint::state() returns a QEventPoint::State value, not a Qt::TouchPointState value. --- src/libkwineffects/kwinoffscreenquickview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libkwineffects/kwinoffscreenquickview.cpp b/src/libkwineffects/kwinoffscreenquickview.cpp index 5cf8df6310..02af5d0103 100644 --- a/src/libkwineffects/kwinoffscreenquickview.cpp +++ b/src/libkwineffects/kwinoffscreenquickview.cpp @@ -454,7 +454,7 @@ void OffscreenQuickView::Private::updateTouchState(Qt::TouchPointState state, qi // points to Stationary so we only have one touch point with a different // state. touchPoints.erase(std::remove_if(touchPoints.begin(), touchPoints.end(), [](QTouchEvent::TouchPoint &point) { - if (point.state() == Qt::TouchPointReleased) { + if (point.state() == QEventPoint::Released) { return true; } QMutableEventPoint::setState(point, QEventPoint::Stationary);