diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-14 08:55:04 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-18 13:21:25 (GMT) |
commit | ac8e33994455200c369d8aa9d1853b618c225058 (patch) | |
tree | e46879fd41c7bdcefc41b6f0ba25c7f0703623f3 /src/gui/kernel/qgesture_p.h | |
parent | 8f1724f5b3b09f57e260518f644ebc002b065443 (diff) | |
download | Qt-ac8e33994455200c369d8aa9d1853b618c225058.zip Qt-ac8e33994455200c369d8aa9d1853b618c225058.tar.gz Qt-ac8e33994455200c369d8aa9d1853b618c225058.tar.bz2 |
implemented gestures support in graphicsview for QGraphicsItems and
QGraphicsProxyWidgets.
This is still work-in-progress.
Diffstat (limited to 'src/gui/kernel/qgesture_p.h')
-rw-r--r-- | src/gui/kernel/qgesture_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qgesture_p.h b/src/gui/kernel/qgesture_p.h index d2d77cc..0f2e791 100644 --- a/src/gui/kernel/qgesture_p.h +++ b/src/gui/kernel/qgesture_p.h @@ -60,13 +60,14 @@ QT_BEGIN_NAMESPACE +class QGraphicsItem; class QGesturePrivate : public QObjectPrivate { Q_DECLARE_PUBLIC(QGesture) public: QGesturePrivate() - : state(Qt::NoGesture), singleshot(0), duration(0) { } + : state(Qt::NoGesture), graphicsItem(0), singleshot(0), duration(0) { } void init(const QPoint &startPos, const QPoint &lastPos, const QPoint &pos, const QRect &rect, @@ -86,6 +87,7 @@ public: Qt::GestureState state; QPointer<QWidget> widget; + QGraphicsItem *graphicsItem; uint singleshot:1; QRect rect; |