summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesturemanager.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-06 13:42:51 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-11 13:42:39 (GMT)
commit3cad576b7ce221ca92c07a513c4c0fbe9886f8e5 (patch)
tree54d36ca587a642bb25e0473631477b51c3ad66d7 /src/gui/kernel/qgesturemanager.cpp
parentb231b0bcd36d531d3558cee12be263a98391b9db (diff)
downloadQt-3cad576b7ce221ca92c07a513c4c0fbe9886f8e5.zip
Qt-3cad576b7ce221ca92c07a513c4c0fbe9886f8e5.tar.gz
Qt-3cad576b7ce221ca92c07a513c4c0fbe9886f8e5.tar.bz2
Fixes: Add missing functions for a adding custom gesture recognizers.
Diffstat (limited to 'src/gui/kernel/qgesturemanager.cpp')
-rw-r--r--src/gui/kernel/qgesturemanager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesturemanager.cpp b/src/gui/kernel/qgesturemanager.cpp
index c9bf0df..7954ae9 100644
--- a/src/gui/kernel/qgesturemanager.cpp
+++ b/src/gui/kernel/qgesturemanager.cpp
@@ -83,6 +83,16 @@ QGestureManager::QGestureManager()
this, SLOT(recognizerTriggered(QGestureRecognizer::Result)));
}
+void QGestureManager::addRecognizer(QGestureRecognizer *recognizer)
+{
+ recognizers << recognizer;
+}
+
+void QGestureManager::removeRecognizer(QGestureRecognizer *recognizer)
+{
+ recognizers.remove(recognizer);
+}
+
bool QGestureManager::filterEvent(QEvent *event)
{
if (!QApplication::testAttribute(Qt::AA_EnableGestures))