path: root/src/gui/kernel/qsimpledrag.cpp
diff options
authorShawn Rutledge <>2020-02-26 16:39:34 +0100
committerShawn Rutledge <>2020-06-08 19:11:39 +0200
commit24e52c10deedbaef833c0e2c3ee7bee03eacc4f5 (patch)
treeb9c19071f330945c885fc1a6c8a9005bb6a3e473 /src/gui/kernel/qsimpledrag.cpp
parentf19522a1b3e5d1777b7a3ffde368e22f7e32df84 (diff)
Prepare to harmonize pointer event accessor names deprecating everything that doesn't conform to the naming scheme, and providing replacements. Continues what was started with QWheelEvent in 7d29807296cb7ccc7f3459e106d74f93a321c493. However QMouseEvent::pos() is left un-deprecated because it's so widely used. Also quit returning QPointF by const-ref from accessors. It's plenty small enough to return by value; we were never consistent about it anyway; and it's good to avoid some problems with returning a reference to a temporary in case the value is calculated in the accessor. [ChangeLog][QtGui][QPointerEvent] Mouse, touch and tablet events now have a standard set of QPointF accessors: position(), scenePosition() and globalPosition(). Existing accessors that return integer QPoints, and those with non-standard names, have been deprecated. You can use the clazy qevent-accessors check to update your code accordingly. Task-number: QTBUG-20885 Task-number: QTBUG-84775 Change-Id: I8e6f587da76d6d0bca6e965ce8ebc7e67b868011 Reviewed-by: Volker Hilsheimer <>
Diffstat (limited to 'src/gui/kernel/qsimpledrag.cpp')
0 files changed, 0 insertions, 0 deletions