summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesture_p.h
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-08-12 13:48:08 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-08-12 13:48:08 (GMT)
commit4cd7180ad3365c0e8eef8a22c825f3289a799ab0 (patch)
treee383d24055eb86e8b128d20517f5a0e0529eea8a /src/gui/kernel/qgesture_p.h
parent1e08ccc646e4f07fd560c901ff7b56626ed98d1e (diff)
parent3368eea602d394812283d437b5e9d786e1af64e3 (diff)
downloadQt-4cd7180ad3365c0e8eef8a22c825f3289a799ab0.zip
Qt-4cd7180ad3365c0e8eef8a22c825f3289a799ab0.tar.gz
Qt-4cd7180ad3365c0e8eef8a22c825f3289a799ab0.tar.bz2
Merge branch 'master' into topic/mmfphonon
Conflicts: src/3rdparty/phonon/phonon/factory.cpp src/s60installs/qt_libs.pro
Diffstat (limited to 'src/gui/kernel/qgesture_p.h')
-rw-r--r--src/gui/kernel/qgesture_p.h38
1 files changed, 5 insertions, 33 deletions
diff --git a/src/gui/kernel/qgesture_p.h b/src/gui/kernel/qgesture_p.h
index caf851e..56eaee7 100644
--- a/src/gui/kernel/qgesture_p.h
+++ b/src/gui/kernel/qgesture_p.h
@@ -56,10 +56,12 @@
#include "qrect.h"
#include "qpoint.h"
#include "qdatetime.h"
+#include "qgesture.h"
#include "private/qobject_p.h"
QT_BEGIN_NAMESPACE
+class QObject;
class QGraphicsItem;
class QGesturePrivate : public QObjectPrivate
{
@@ -67,45 +69,15 @@ class QGesturePrivate : public QObjectPrivate
public:
QGesturePrivate()
- : state(Qt::NoGesture), graphicsItem(0), singleshot(0), duration(0) { }
-
- void init(const QPoint &startPos, const QPoint &lastPos,
- const QPoint &pos, const QRect &rect,
- const QPoint &hotSpot, const QDateTime &startTime,
- uint duration)
+ : graphicsItem(0), eventFilterProxyGraphicsItem(0), state(Qt::NoGesture)
{
- this->rect = rect;
- this->hotSpot = hotSpot;
- this->startTime = startTime;
- this->duration = duration;
- this->startPos = startPos;
- this->lastPos = lastPos;
- this->pos = pos;
}
- QString type;
- Qt::GestureState state;
- QPointer<QWidget> widget;
QGraphicsItem *graphicsItem;
- uint singleshot:1;
-
- QRect rect;
- QPoint hotSpot;
- QDateTime startTime;
- uint duration;
- QPoint startPos;
- QPoint lastPos;
- QPoint pos;
-};
+ QGraphicsItem *eventFilterProxyGraphicsItem;
-class QPanningGesturePrivate : public QGesturePrivate
-{
- Q_DECLARE_PUBLIC(QPanningGesture)
-
-public:
- Qt::DirectionType lastDirection;
- Qt::DirectionType direction;
+ Qt::GestureState state;
};
QT_END_NAMESPACE