diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-08-25 14:19:58 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-08-25 14:31:45 +0200 |
commit | 3ed314ca46286c0e4f54b124d145704277592ddd (patch) | |
tree | 56dd7479b2f2ace9f481afdbd5c341032d8096fb /src/gui/kernel/qcursor_qpa.cpp | |
parent | 9e04c60ac070348f8208fb0254e62d6e593320c3 (diff) |
Fix compilation/use correct data type for qt_lastx,y.
Change-Id: I6fdc8dcfb19d7498a1eb8013f75113537ce7a213
Reviewed-on: http://codereview.qt.nokia.com/3594
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/gui/kernel/qcursor_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qcursor_qpa.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/kernel/qcursor_qpa.cpp b/src/gui/kernel/qcursor_qpa.cpp index 65d5b0f650..40a15317ee 100644 --- a/src/gui/kernel/qcursor_qpa.cpp +++ b/src/gui/kernel/qcursor_qpa.cpp @@ -42,6 +42,7 @@ #include <qcursor.h> #include <private/qcursor_p.h> #include <qplatformcursor_qpa.h> +#include <private/qguiapplication_p.h> #include <qbitmap.h> QT_BEGIN_NAMESPACE @@ -108,11 +109,9 @@ void QCursorData::update() #endif //QT_NO_CURSOR -extern qreal qt_last_x,qt_last_y; - QPoint QCursor::pos() { - return QPointF(qt_last_x, qt_last_y).toPoint(); + return QGuiApplicationPrivate::lastCursorPosition.toPoint(); } void QCursor::setPos(int x, int y) |