summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-22 17:01:05 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-22 19:02:13 (GMT)
commit0381847d381c6cc089e2d5da62d0d102df713cb0 (patch)
tree7d321bd75e250726d355e9cfe0e81c5f39ad6c8b
parentb8e454b7f31d095454098931939c1c517c4b2a13 (diff)
downloadQt-0381847d381c6cc089e2d5da62d0d102df713cb0.zip
Qt-0381847d381c6cc089e2d5da62d0d102df713cb0.tar.gz
Qt-0381847d381c6cc089e2d5da62d0d102df713cb0.tar.bz2
Compile fix for gestures on Windows.
Reviewed-by: trustme
-rw-r--r--src/gui/kernel/qwinnativepangesturerecognizer_win.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/kernel/qwinnativepangesturerecognizer_win.cpp b/src/gui/kernel/qwinnativepangesturerecognizer_win.cpp
index 4619594..12d3058 100644
--- a/src/gui/kernel/qwinnativepangesturerecognizer_win.cpp
+++ b/src/gui/kernel/qwinnativepangesturerecognizer_win.cpp
@@ -97,11 +97,11 @@ QGestureRecognizer::Result QWinNativePanGestureRecognizer::filterEvent(QGesture
return QGestureRecognizer::Ignore;
}
if (q->state() == Qt::NoGesture) {
- d->lastOffset = d->totalOffset = d->offset = QSize();
+ d->lastOffset = d->totalOffset = d->offset = QPointF();
} else {
d->lastOffset = d->offset;
- d->offset = QSize(ev->position.x() - d->lastPosition.x(),
- ev->position.y() - d->lastPosition.y());
+ d->offset = QPointF(ev->position.x() - d->lastPosition.x(),
+ ev->position.y() - d->lastPosition.y());
d->totalOffset += d->offset;
}
d->lastPosition = ev->position;
@@ -114,7 +114,7 @@ void QWinNativePanGestureRecognizer::reset(QGesture *state)
QPanGesture *pan = static_cast<QPanGesture*>(state);
QPanGesturePrivate *d = pan->d_func();
- d->totalOffset = d->lastOffset = d->offset = QSizeF();
+ d->totalOffset = d->lastOffset = d->offset = QPointF();
d->lastPosition = QPoint();
d->acceleration = 0;