Fix warning about comparing different enums
QEventPoint::state() returns a QEventPoint::State value, not a Qt::TouchPointState value.
This commit is contained in:
parent
b2a50cffd8
commit
af4397581a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue