summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesturemanager.cpp
diff options
context:
space:
mode:
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))