diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-08-04 11:37:35 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-08-04 14:22:48 (GMT) |
commit | 47c191d3c6b9c3fbe062068167888bed434ab6e2 (patch) | |
tree | 7b3a6f4b9b7e542bfdd79e09682fcea618e95e43 /src/gui/kernel/qgesture.h | |
parent | 6b85ec8790aad8ac01c04f7e7bd4913d8cd8d104 (diff) | |
download | Qt-47c191d3c6b9c3fbe062068167888bed434ab6e2.zip Qt-47c191d3c6b9c3fbe062068167888bed434ab6e2.tar.gz Qt-47c191d3c6b9c3fbe062068167888bed434ab6e2.tar.bz2 |
Removed the startPos/lastPos/pos from the gesture classes.
It doesn't make much sense to have that low-level info neither in the base
QGesture class, nor in the QPanGesture, as the latter one has offset properties
instead.
Reviewed-by: trustme
Diffstat (limited to 'src/gui/kernel/qgesture.h')
-rw-r--r-- | src/gui/kernel/qgesture.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/gui/kernel/qgesture.h b/src/gui/kernel/qgesture.h index 1cd9cae..0735160 100644 --- a/src/gui/kernel/qgesture.h +++ b/src/gui/kernel/qgesture.h @@ -64,10 +64,6 @@ class Q_GUI_EXPORT QGesture : public QObject Q_PROPERTY(Qt::GestureState state READ state) - Q_PROPERTY(QPoint startPos READ startPos WRITE setStartPos) - Q_PROPERTY(QPoint lastPos READ lastPos WRITE setLastPos) - Q_PROPERTY(QPoint pos READ pos WRITE setPos) - public: explicit QGesture(QObject *parent = 0); ~QGesture(); @@ -80,19 +76,13 @@ public: virtual void reset(); Qt::GestureState state() const; - void setState(Qt::GestureState state); - - QPoint startPos() const; - void setStartPos(const QPoint &point); - QPoint lastPos() const; - void setLastPos(const QPoint &point); - QPoint pos() const; - void setPos(const QPoint &point); protected: QGesture(QGesturePrivate &dd, QObject *parent); bool eventFilter(QObject*, QEvent*); + void setState(Qt::GestureState state); + Q_SIGNALS: void started(); void triggered(); |