diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-08-08 13:07:56 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-08 14:21:04 +0200 |
commit | ffb279a14986af9a6d34796e5c1aff53d4cd8b47 (patch) | |
tree | 2c23f86b8462507441165505fb9a703be133f17e /src/gui/kernel/qcursor_qpa.cpp | |
parent | 991033cf4690cace4fead03a588aa5ecaad18d3f (diff) |
Change mouse and wheel QPA events to use QPointF.
At least QMouseEvent already uses QPointF so there is no reason to
restrict handleMouseEvent to integer positions.
Change-Id: I9c72d2e0e99518b40a1898aec9ad2b3421a3e9e2
Reviewed-on: http://codereview.qt.nokia.com/2739
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/kernel/qcursor_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qcursor_qpa.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qcursor_qpa.cpp b/src/gui/kernel/qcursor_qpa.cpp index c0b27bebd8..d4cf6f4995 100644 --- a/src/gui/kernel/qcursor_qpa.cpp +++ b/src/gui/kernel/qcursor_qpa.cpp @@ -107,11 +107,11 @@ void QCursorData::update() #endif //QT_NO_CURSOR -extern int qt_last_x,qt_last_y; +extern qreal qt_last_x,qt_last_y; QPoint QCursor::pos() { - return QPoint(qt_last_x, qt_last_y); + return QPointF(qt_last_x, qt_last_y).toPoint(); } void QCursor::setPos(int x, int y) |