summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r--src/gui/kernel/qapplication.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp
index d188468..b990fe2 100644
--- a/src/gui/kernel/qapplication.cpp
+++ b/src/gui/kernel/qapplication.cpp
@@ -5620,16 +5620,18 @@ Q_GUI_EXPORT void qt_translateRawTouchEvent(QWidget *window,
}
/*!
- Registers \a recognizer in the gesture framework and returns a gesture id.
+ \since 4.6
- QApplication takes ownership of \a recognizer and returns the gesture type
- id associated with it. For gesture recognizers which handle custom QGesture
- objects (i.e. return Qt::CustomGesture in a QGesture::gestureType()
- function, the return value is a gesture id between Qt::CustomGesture and
- Qt::LastGestureType.
+ Registers the given \a recognizer in the gesture framework and returns a gesture ID
+ for it.
- \sa unregisterGestureRecognizer, QGestureRecognizer::createGesture, QGesture
- \since 4.6
+ The application takes ownership of the \a recognizer and returns the gesture type
+ ID associated with it. For gesture recognizers which handle custom QGesture
+ objects (i.e., those which return Qt::CustomGesture in a QGesture::gestureType()
+ function) the return value is a gesture ID between Qt::CustomGesture and
+ Qt::LastGestureType, inclusive.
+
+ \sa unregisterGestureRecognizer(), QGestureRecognizer::createGesture(), QGesture
*/
Qt::GestureType QApplication::registerGestureRecognizer(QGestureRecognizer *recognizer)
{
@@ -5637,10 +5639,11 @@ Qt::GestureType QApplication::registerGestureRecognizer(QGestureRecognizer *reco
}
/*!
- Unregisters all gesture recognizers of specified \a type.
+ \since 4.6
+
+ Unregisters all gesture recognizers of the specified \a type.
\sa registerGestureRecognizer
- \since 4.6
*/
void QApplication::unregisterGestureRecognizer(Qt::GestureType type)
{