@@ -374,7 +374,7 @@ void TouchGestureArea::unownedTouchEvent_waitingForMoreTouches(QTouchEvent *even
374374 }
375375 }
376376
377− if (m_candidateTouches.count() == 0) {
377+ if (m_candidateTouches.isEmpty()) {
378378 setInternalStatus(InternalStatus::WaitingForTouch);
379379 }
380380}
@@ -438,7 +438,7 @@ void TouchGestureArea::unownedTouchEvent_rejected(QTouchEvent *event)
438438 }
439439 }
440440
441− if (m_watchedTouches.count() == 0) {
441+ if (m_watchedTouches.isEmpty()) {
442442 setInternalStatus(InternalStatus::WaitingForTouch);
443443 }
444444}
@@ -526,7 +526,7 @@ void TouchGestureArea::updateTouchPoints(QTouchEvent *touchEvent)
526526 if (updateable) {
527527 if (!dragging() && m_status == InternalStatus::Recognized) {
528528 bool allWantDrag = !m_liveTouchPoints.isEmpty();
529− Q_FOREACH(auto point, m_liveTouchPoints) {
529+ Q_FOREACH(const auto &point, m_liveTouchPoints) {
530530 allWantDrag &= point->dragging();
531531 }
532532 // only dragging if all points are dragging.
@@ -643,11 +643,9 @@ bool TouchGestureArea::dragging() const
643643QQmlListProperty<GestureTouchPoint> TouchGestureArea::touchPoints()
644644{
645645 return QQmlListProperty<GestureTouchPoint>(this,
646− 0,
647− nullptr,
648− TouchGestureArea::touchPoint_count,
649− TouchGestureArea::touchPoint_at,
650− 0);
646+ nullptr,
647+ TouchGestureArea::touchPoint_count,
648+ TouchGestureArea::touchPoint_at);
651649}
652650
653651int TouchGestureArea::minimumTouchPoints() const
@@ -718,7 +716,7 @@ void TouchGestureArea::rejectGesture()
718716 }
719717 m_candidateTouches.clear();
720718
721− if (m_watchedTouches.count() == 0) {
719+ if (m_watchedTouches.isEmpty()) {
722720 setInternalStatus(InternalStatus::WaitingForTouch);
723721 } else {
724722 setInternalStatus(InternalStatus::Rejected);