diff options
author | Thomas Zander <thomas.zander@trolltech.com> | 2009-10-20 13:43:05 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-10-22 14:59:20 (GMT) |
commit | 04302702c5e7938fb4ae8bc41d78486725e62ae7 (patch) | |
tree | afc1643a16dec5079f82f219418ba1d2a76dbb04 /src/gui/kernel/qgesture.h | |
parent | ee6d3a13a04c2fb5cfef8a18fd370ef1f605555a (diff) | |
download | Qt-04302702c5e7938fb4ae8bc41d78486725e62ae7.zip Qt-04302702c5e7938fb4ae8bc41d78486725e62ae7.tar.gz Qt-04302702c5e7938fb4ae8bc41d78486725e62ae7.tar.bz2 |
Change API; the pan gesture now has points for distance, not size.
Diffstat (limited to 'src/gui/kernel/qgesture.h')
-rw-r--r-- | src/gui/kernel/qgesture.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/kernel/qgesture.h b/src/gui/kernel/qgesture.h index 9d1c11e..6469959 100644 --- a/src/gui/kernel/qgesture.h +++ b/src/gui/kernel/qgesture.h @@ -96,22 +96,22 @@ class Q_GUI_EXPORT QPanGesture : public QGesture Q_OBJECT Q_DECLARE_PRIVATE(QPanGesture) - Q_PROPERTY(QSizeF totalOffset READ totalOffset WRITE setTotalOffset) - Q_PROPERTY(QSizeF lastOffset READ lastOffset WRITE setLastOffset) - Q_PROPERTY(QSizeF offset READ offset WRITE setOffset) + Q_PROPERTY(QPointF totalOffset READ totalOffset WRITE setTotalOffset) + Q_PROPERTY(QPointF lastOffset READ lastOffset WRITE setLastOffset) + Q_PROPERTY(QPointF offset READ offset WRITE setOffset) Q_PROPERTY(qreal acceleration READ acceleration WRITE setAcceleration) public: QPanGesture(QObject *parent = 0); - QSizeF totalOffset() const; - QSizeF lastOffset() const; - QSizeF offset() const; + QPointF totalOffset() const; + QPointF lastOffset() const; + QPointF offset() const; qreal acceleration() const; - void setTotalOffset(const QSizeF &value); - void setLastOffset(const QSizeF &value); - void setOffset(const QSizeF &value); + void setTotalOffset(const QPointF &value); + void setLastOffset(const QPointF &value); + void setOffset(const QPointF &value); void setAcceleration(qreal value); friend class QPanGestureRecognizer; |