summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesture_p.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-19 16:02:15 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-11 14:51:41 (GMT)
commitc24887401cf7e22825263e8b50d37ef704a2f90d (patch)
treef6ef4169d7c730d95012aa2b587c85222172d74b /src/gui/kernel/qgesture_p.h
parent05767badad6408438c6dcffa29318f681522a55a (diff)
downloadQt-c24887401cf7e22825263e8b50d37ef704a2f90d.zip
Qt-c24887401cf7e22825263e8b50d37ef704a2f90d.tar.gz
Qt-c24887401cf7e22825263e8b50d37ef704a2f90d.tar.bz2
Gesture recognizer don;t create new QGesture object every time
anymore, but just fill data on a single qgesture object.
Diffstat (limited to 'src/gui/kernel/qgesture_p.h')
-rw-r--r--src/gui/kernel/qgesture_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesture_p.h b/src/gui/kernel/qgesture_p.h
index 24350d4..cf4e760 100644
--- a/src/gui/kernel/qgesture_p.h
+++ b/src/gui/kernel/qgesture_p.h
@@ -82,6 +82,9 @@ public:
this->pos = pos;
}
+ QString type;
+ Qt::GestureState state;
+
QRect rect;
QPoint hotSpot;
QDateTime startTime;
@@ -94,6 +97,10 @@ public:
class QPanningGesturePrivate : public QGesturePrivate
{
Q_DECLARE_PUBLIC(QPanningGesture)
+
+public:
+ Qt::DirectionType lastDirection;
+ Qt::DirectionType direction;
};
QT_END_NAMESPACE