summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-10-30 13:39:48 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-10-30 13:39:48 (GMT)
commit6a907f37d698eadc9cc35712b9cda48ba19e634d (patch)
treed1df866f6a19901f5fe0431e5609cfc2d02484a9 /src/gui/kernel/qwidget.cpp
parent8097fa53b5e0e6228bd5737de6de8cd77c04dddf (diff)
parent8c4edbd04f350294462fd689748de2dd7cc84d47 (diff)
downloadQt-6a907f37d698eadc9cc35712b9cda48ba19e634d.zip
Qt-6a907f37d698eadc9cc35712b9cda48ba19e634d.tar.gz
Qt-6a907f37d698eadc9cc35712b9cda48ba19e634d.tar.bz2
Merge commit '8c4edbd04f350294462fd689748de2dd7cc84d47' into 4.6-upstream
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 75bdd73..4061c3d 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -11718,6 +11718,22 @@ void QWidget::grabGesture(Qt::GestureType gesture, Qt::GestureContext context)
(void)QGestureManager::instance(); // create a gesture manager
}
+/*!
+ Unsubscribes the widget to a given \a gesture type
+
+ \sa QGestureEvent
+ \since 4.6
+*/
+void QWidget::ungrabGesture(Qt::GestureType gesture)
+{
+ Q_D(QWidget);
+ if (d->gestureContext.remove(gesture)) {
+ QGestureManager *manager = QGestureManager::instance();
+ manager->cleanupCachedGestures(this, gesture);
+ }
+}
+
+
QT_END_NAMESPACE
#include "moc_qwidget.cpp"