summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-10-30 10:56:16 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-10-30 10:56:16 (GMT)
commit6fbd9589cbe77c4d3213ba43c7e88fc451c9664e (patch)
treebfec32f37cdeed130731b758d4fe9fe14e2a8392 /src/gui/kernel/qwidget.cpp
parent83fff2f970b9a7b41861336c7dca0eadbda28099 (diff)
parent8c4edbd04f350294462fd689748de2dd7cc84d47 (diff)
downloadQt-6fbd9589cbe77c4d3213ba43c7e88fc451c9664e.zip
Qt-6fbd9589cbe77c4d3213ba43c7e88fc451c9664e.tar.gz
Qt-6fbd9589cbe77c4d3213ba43c7e88fc451c9664e.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-platform-team into 4.6
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 27e73e0..14f3bfe 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -11722,6 +11722,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"