diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-03-20 14:24:50 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-11 14:51:42 (GMT) |
commit | d4e64228ef8154a1f69f91cfd6a78f29d89718e1 (patch) | |
tree | 2bdd1b95bc008674008f1a7b8f6c03ef14c7736b /src/gui/kernel/qgesturestandardrecognizers.cpp | |
parent | 0fde21aa44289f367f11e79500310a54db1787bb (diff) | |
download | Qt-d4e64228ef8154a1f69f91cfd6a78f29d89718e1.zip Qt-d4e64228ef8154a1f69f91cfd6a78f29d89718e1.tar.gz Qt-d4e64228ef8154a1f69f91cfd6a78f29d89718e1.tar.bz2 |
Gesture manager takes ownership of the provided gesture recognizers.
Diffstat (limited to 'src/gui/kernel/qgesturestandardrecognizers.cpp')
-rw-r--r-- | src/gui/kernel/qgesturestandardrecognizers.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/kernel/qgesturestandardrecognizers.cpp b/src/gui/kernel/qgesturestandardrecognizers.cpp index 0fa5201..cb448c5 100644 --- a/src/gui/kernel/qgesturestandardrecognizers.cpp +++ b/src/gui/kernel/qgesturestandardrecognizers.cpp @@ -78,8 +78,8 @@ QString qt_getStandardGestureTypeName(Qt::GestureType gestureType) // QGestureRecognizerPan // -QGestureRecognizerPan::QGestureRecognizerPan() - : QGestureRecognizer(QString()), +QGestureRecognizerPan::QGestureRecognizerPan(QObject *parent) + : QGestureRecognizer(QString(), parent), mousePressed(false), gestureFinished(false), lastDirection(Qt::NoDirection), currentDirection(Qt::NoDirection) { @@ -177,8 +177,8 @@ void QGestureRecognizerPan::internalReset() // // QDoubleTapGestureRecognizer // -QDoubleTapGestureRecognizer::QDoubleTapGestureRecognizer() - : QGestureRecognizer(QString()), +QDoubleTapGestureRecognizer::QDoubleTapGestureRecognizer(QObject *parent) + : QGestureRecognizer(QString(), parent), gesture(0, qt_getStandardGestureTypeName(Qt::DoubleTapGesture)) { Q_D(QGestureRecognizer); @@ -229,8 +229,8 @@ void QDoubleTapGestureRecognizer::reset() const int QTapAndHoldGestureRecognizer::iterationCount = 40; const int QTapAndHoldGestureRecognizer::iterationTimeout = 50; -QTapAndHoldGestureRecognizer::QTapAndHoldGestureRecognizer() - : QGestureRecognizer(QString()), iteration(0), +QTapAndHoldGestureRecognizer::QTapAndHoldGestureRecognizer(QObject *parent) + : QGestureRecognizer(QString(), parent), iteration(0), gesture(0, qt_getStandardGestureTypeName(Qt::TapAndHoldGesture)) { Q_D(QGestureRecognizer); |