diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-10-22 18:15:36 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-10-22 18:20:52 (GMT) |
commit | 7856c0397a42d26fa4fdd3ead3df7886b408b8ed (patch) | |
tree | a382c40e86b27d66ec152de2591f943be34592a7 /src/gui | |
parent | 30b66e1b92b54b8f035da3c66ad086340befcf5b (diff) | |
download | Qt-7856c0397a42d26fa4fdd3ead3df7886b408b8ed.zip Qt-7856c0397a42d26fa4fdd3ead3df7886b408b8ed.tar.gz Qt-7856c0397a42d26fa4fdd3ead3df7886b408b8ed.tar.bz2 |
Compile fix.
QPanGesture was changed to use QPointF instead of QSizeF, also need to
change all usages of the pan gesture.
Reviewed-by: trustme
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qmacgesturerecognizer_mac.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/kernel/qmacgesturerecognizer_mac.mm b/src/gui/kernel/qmacgesturerecognizer_mac.mm index 7b19a54..7019580 100644 --- a/src/gui/kernel/qmacgesturerecognizer_mac.mm +++ b/src/gui/kernel/qmacgesturerecognizer_mac.mm @@ -218,7 +218,7 @@ QMacPanGestureRecognizer::filterEvent(QGesture *gesture, QObject *target, QEvent const QPointF p = QCursor::pos(); const QPointF posOffset = p - _lastPos; g->setLastOffset(g->offset()); - g->setOffset(QSizeF(posOffset.x(), posOffset.y())); + g->setOffset(QPointF(posOffset.x(), posOffset.y())); g->setTotalOffset(g->lastOffset() + g->offset()); _lastPos = p; return QGestureRecognizer::GestureTriggered; @@ -256,9 +256,9 @@ void QMacPanGestureRecognizer::reset(QGesture *gesture) _startPos = QPointF(); _lastPos = QPointF(); _panCanceled = true; - g->setOffset(QSizeF(0, 0)); - g->setLastOffset(QSizeF(0, 0)); - g->setTotalOffset(QSizeF(0, 0)); + g->setOffset(QPointF(0, 0)); + g->setLastOffset(QPointF(0, 0)); + g->setTotalOffset(QPointF(0, 0)); g->setAcceleration(qreal(1)); QGestureRecognizer::reset(gesture); } |