@@ -374,7 +374,7 @@ void TouchGestureArea::unownedTouchEvent_waitingForMoreTouches(QTouchEvent *even
377− if (m_candidateTouches.count() == 0) {
377+ if (m_candidateTouches.isEmpty()) {
378 setInternalStatus(InternalStatus::WaitingForTouch);
378 setInternalStatus(InternalStatus::WaitingForTouch);
@@ -438,7 +438,7 @@ void TouchGestureArea::unownedTouchEvent_rejected(QTouchEvent *event)
441− if (m_watchedTouches.count() == 0) {
441+ if (m_watchedTouches.isEmpty()) {
442 setInternalStatus(InternalStatus::WaitingForTouch);
442 setInternalStatus(InternalStatus::WaitingForTouch);
@@ -526,7 +526,7 @@ void TouchGestureArea::updateTouchPoints(QTouchEvent *touchEvent)
526 if (updateable) {
526 if (updateable) {
527 if (!dragging() && m_status == InternalStatus::Recognized) {
527 if (!dragging() && m_status == InternalStatus::Recognized) {
528 bool allWantDrag = !m_liveTouchPoints.isEmpty();
528 bool allWantDrag = !m_liveTouchPoints.isEmpty();
529− Q_FOREACH(auto point, m_liveTouchPoints) {
529+ Q_FOREACH(const auto &point, m_liveTouchPoints) {
530 allWantDrag &= point->dragging();
530 allWantDrag &= point->dragging();
532 // only dragging if all points are dragging.
532 // only dragging if all points are dragging.
@@ -643,11 +643,9 @@ bool TouchGestureArea::dragging() const
643QQmlListProperty<GestureTouchPoint> TouchGestureArea::touchPoints()
643QQmlListProperty<GestureTouchPoint> TouchGestureArea::touchPoints()
645 return QQmlListProperty<GestureTouchPoint>(this,
645 return QQmlListProperty<GestureTouchPoint>(this,
647− nullptr,
646+ nullptr,
648− TouchGestureArea::touchPoint_count,
647+ TouchGestureArea::touchPoint_count,
649− TouchGestureArea::touchPoint_at,
648+ TouchGestureArea::touchPoint_at);
653int TouchGestureArea::minimumTouchPoints() const
651int TouchGestureArea::minimumTouchPoints() const
@@ -718,7 +716,7 @@ void TouchGestureArea::rejectGesture()
719 m_candidateTouches.clear();
717 m_candidateTouches.clear();
721− if (m_watchedTouches.count() == 0) {
719+ if (m_watchedTouches.isEmpty()) {
722 setInternalStatus(InternalStatus::WaitingForTouch);
720 setInternalStatus(InternalStatus::WaitingForTouch);
724 setInternalStatus(InternalStatus::Rejected);
722 setInternalStatus(InternalStatus::Rejected);