summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesturerecognizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qgesturerecognizer.cpp')
-rw-r--r--src/gui/kernel/qgesturerecognizer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kernel/qgesturerecognizer.cpp b/src/gui/kernel/qgesturerecognizer.cpp
index 7791ad7..278389a 100644
--- a/src/gui/kernel/qgesturerecognizer.cpp
+++ b/src/gui/kernel/qgesturerecognizer.cpp
@@ -125,13 +125,13 @@ QGestureRecognizerPrivate::QGestureRecognizerPrivate()
/*!
Creates a new gesture recognizer object that handles gestures of
- the specific \a type.
+ the specific \a type as a child of \a parent.
\sa QApplication::addGestureRecognizer(),
QApplication::removeGestureRecognizer(),
*/
-QGestureRecognizer::QGestureRecognizer(const QString &type)
- : QObject(*new QGestureRecognizerPrivate, 0)
+QGestureRecognizer::QGestureRecognizer(const QString &type, QObject *parent)
+ : QObject(*new QGestureRecognizerPrivate, parent)
{
d_func()->customGestureType = type;
}