Refactor QMouseEvent to contain the position inside the window
authorLars Knoll <lars.knoll@nokia.com>
Thu, 1 Sep 2011 09:13:35 +0000 (11:13 +0200)
committerLars Knoll <lars.knoll@nokia.com>
Thu, 1 Sep 2011 11:27:37 +0000 (13:27 +0200)
commitc2aea75c220984953c53c3813717713437649999
treee710906642169baf9213c047329d511e673bb98a
parentcf5e669a06ec1d8bd08a4db9c2849c5d7ea9fec4
Refactor QMouseEvent to contain the position inside the window

Rename the default accessors for positions to localPos, windowPos
and screenPos, to be explicit about their use.
Introduce a QT_NO_INTEGER_EVENT_COORDINATES define so one can make sure
to always use the float based coordinates.
Fixup all Qt code to use the correct constructor that specifies all
three coordinates.

Change-Id: If4bb93b8d1e2eb2440260d99680c468706cfe68f
Reviewed-on: http://codereview.qt.nokia.com/4058
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
16 files changed:
src/gui/kernel/qevent.cpp
src/gui/kernel/qevent.h
src/gui/kernel/qguiapplication.cpp
src/plugins/platforms/xcb/qxcbdrag.cpp
src/widgets/graphicsview/qgraphicsproxywidget.cpp
src/widgets/graphicsview/qgraphicsview.cpp
src/widgets/itemviews/qabstractitemview.cpp
src/widgets/kernel/qapplication.cpp
src/widgets/kernel/qwidget.cpp
src/widgets/kernel/qwidgetwindow_qpa.cpp
src/widgets/util/qflickgesture.cpp
src/widgets/widgets/qmenu.cpp
src/widgets/widgets/qplaintextedit.cpp
src/widgets/widgets/qtextedit.cpp
src/widgets/widgets/qwidgetlinecontrol.cpp
src/widgets/widgets/qwidgettextcontrol.cpp