summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qstandardgestures.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-08-27 11:22:23 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-09-03 09:30:54 (GMT)
commit9f455fc7088a059899fa8346f34d6b96e908fea6 (patch)
treecd4fbc1306fc71c7f0f97c8a15a6409c6ec8f100 /src/gui/kernel/qstandardgestures.cpp
parent73295cc0251c73ed95387e16cda7061e366a11d0 (diff)
downloadQt-9f455fc7088a059899fa8346f34d6b96e908fea6.zip
Qt-9f455fc7088a059899fa8346f34d6b96e908fea6.tar.gz
Qt-9f455fc7088a059899fa8346f34d6b96e908fea6.tar.bz2
Added simple manualtests for gestures
Reviewed-by: trustme
Diffstat (limited to 'src/gui/kernel/qstandardgestures.cpp')
-rw-r--r--src/gui/kernel/qstandardgestures.cpp20
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);