From 09e903e0743b3d3d58c31621b368ea317140b0f2 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 27 Feb 2015 08:14:49 +0100 Subject: QQuickWindow: rename deliverGestureEvent to deliverNativeGestureEvent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Native gestures are distinct from QGestureEvent, and we might need another deliver method for those eventually. Change-Id: I969c9b830d1dc7a91ffbc6cae2bdb68552a58344 Reviewed-by: Andrew Knight Reviewed-by: Morten Johan Sørvig --- src/quick/items/qquickwindow.cpp | 6 +++--- src/quick/items/qquickwindow_p.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp index cb1af51b69..521ff1c4bb 100644 --- a/src/quick/items/qquickwindow.cpp +++ b/src/quick/items/qquickwindow.cpp @@ -1397,7 +1397,7 @@ bool QQuickWindow::event(QEvent *e) break; } case QEvent::NativeGesture: - d->deliverGestureEvent(d->contentItem, static_cast(e)); + d->deliverNativeGestureEvent(d->contentItem, static_cast(e)); break; default: break; @@ -1772,7 +1772,7 @@ void QQuickWindow::wheelEvent(QWheelEvent *event) } #endif // QT_NO_WHEELEVENT -bool QQuickWindowPrivate::deliverGestureEvent(QQuickItem *item, QNativeGestureEvent *event) +bool QQuickWindowPrivate::deliverNativeGestureEvent(QQuickItem *item, QNativeGestureEvent *event) { QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item); @@ -1784,7 +1784,7 @@ bool QQuickWindowPrivate::deliverGestureEvent(QQuickItem *item, QNativeGestureEv QQuickItem *child = children.at(ii); if (!child->isVisible() || !child->isEnabled() || QQuickItemPrivate::get(child)->culled) continue; - if (deliverGestureEvent(child, event)) + if (deliverNativeGestureEvent(child, event)) return true; } diff --git a/src/quick/items/qquickwindow_p.h b/src/quick/items/qquickwindow_p.h index 4d5f831e92..c3ae6c054c 100644 --- a/src/quick/items/qquickwindow_p.h +++ b/src/quick/items/qquickwindow_p.h @@ -141,7 +141,7 @@ public: #ifndef QT_NO_WHEELEVENT bool deliverWheelEvent(QQuickItem *, QWheelEvent *); #endif - bool deliverGestureEvent(QQuickItem *, QNativeGestureEvent *); + bool deliverNativeGestureEvent(QQuickItem *, QNativeGestureEvent *); bool deliverTouchPoints(QQuickItem *, QTouchEvent *, const QList &, QSet *, QHash > *, QSet *filtered); void deliverTouchEvent(QTouchEvent *); -- cgit v1.2.3