summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesturestandardrecognizers_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/qgesturestandardrecognizers_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/qgesturestandardrecognizers_p.h')
-rw-r--r--src/gui/kernel/qgesturestandardrecognizers_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesturestandardrecognizers_p.h b/src/gui/kernel/qgesturestandardrecognizers_p.h
index 8f1361f..5163bd6 100644
--- a/src/gui/kernel/qgesturestandardrecognizers_p.h
+++ b/src/gui/kernel/qgesturestandardrecognizers_p.h
@@ -75,6 +75,8 @@ public:
private:
void internalReset();
+ QPanningGesture gesture;
+
QPoint pressedPos;
QPoint lastPos;
QPoint currentPos;
@@ -97,6 +99,7 @@ public:
void reset();
private:
+ QGesture gesture;
QPoint pressedPosition;
};
@@ -114,6 +117,7 @@ protected:
void timerEvent(QTimerEvent *event);
private:
+ QGesture gesture;
QPoint pressedPosition;
QBasicTimer timer;
int iteration;