diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-08-27 11:22:23 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-09-03 09:30:54 (GMT) |
commit | 9f455fc7088a059899fa8346f34d6b96e908fea6 (patch) | |
tree | cd4fbc1306fc71c7f0f97c8a15a6409c6ec8f100 /src | |
parent | 73295cc0251c73ed95387e16cda7061e366a11d0 (diff) | |
download | Qt-9f455fc7088a059899fa8346f34d6b96e908fea6.zip Qt-9f455fc7088a059899fa8346f34d6b96e908fea6.tar.gz Qt-9f455fc7088a059899fa8346f34d6b96e908fea6.tar.bz2 |
Added simple manualtests for gestures
Reviewed-by: trustme
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qstandardgestures.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gui/kernel/qstandardgestures.cpp b/src/gui/kernel/qstandardgestures.cpp index cc30049..4e0c27f 100644 --- a/src/gui/kernel/qstandardgestures.cpp +++ b/src/gui/kernel/qstandardgestures.cpp @@ -87,6 +87,16 @@ QPanGesture::QPanGesture(QWidget *gestureTarget, QObject *parent) setObjectName(QLatin1String("QPanGesture")); } +/*! + \internal + An internal constructor to mark the gesture implicitely created by Qt. +*/ +QPanGesture::QPanGesture(QWidget *gestureTarget, QObject *parent, void*) + : QGesture(*new QPanGesturePrivate, gestureTarget, parent) +{ + setObjectName(QLatin1String("QPanGesture")); +} + void QPanGesturePrivate::setupGestureTarget(QObject *newGestureTarget) { Q_Q(QPanGesture); @@ -331,6 +341,16 @@ QPinchGesture::QPinchGesture(QWidget *gestureTarget, QObject *parent) setObjectName(QLatin1String("QPinchGesture")); } +/*! + \internal + An internal constructor to mark the gesture implicitely created by Qt. +*/ +QPinchGesture::QPinchGesture(QWidget *gestureTarget, QObject *parent, void*) + : QGesture(*new QPinchGesturePrivate, gestureTarget, parent) +{ + setObjectName(QLatin1String("QPinchGesture")); +} + void QPinchGesturePrivate::setupGestureTarget(QObject *newGestureTarget) { Q_Q(QPinchGesture); |