diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-11-09 22:51:21 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-11-10 08:21:08 +0100 |
commit | 48219c8231f7f9daf79f6c60a752b78c03e44a1f (patch) | |
tree | d6e0997a558d3bb372f2a51e42a293bd0c8ffcda /src/gui/kernel/qwindowsysteminterface_p.h | |
parent | 5f2b53f13c40c31da21d8352312962bb97cb8c97 (diff) |
Remove code for non-enhanced mouse events
Followup to a37785ec7638e7485112b87dd7e767881fecc114.
The mouse button that caused the event and the current state of all
mouse buttons must always be given separately in QPA mouse events.
Task-number: QTBUG-59277
Task-number: QTBUG-62329
Task-number: QTBUG-63467
Change-Id: I27209b3730baef325ce0f1c4d3778930e72d5465
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_p.h')
-rw-r--r-- | src/gui/kernel/qwindowsysteminterface_p.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_p.h b/src/gui/kernel/qwindowsysteminterface_p.h index af149cd2ab..807c34131c 100644 --- a/src/gui/kernel/qwindowsysteminterface_p.h +++ b/src/gui/kernel/qwindowsysteminterface_p.h @@ -254,13 +254,6 @@ public: : PointerEvent(w, time, Mouse, mods, device), localPos(local), globalPos(global), buttons(state), source(src), nonClientArea(frame), button(b), buttonType(type) { } - // ### In Qt6 this method can be removed as there won't be need for compatibility code path - bool enhancedMouseEvent() const - { - static const bool disableEnhanced = qEnvironmentVariableIsSet("QT_QPA_DISABLE_ENHANCED_MOUSE"); - return !disableEnhanced && buttonType != QEvent::None; - } - QPointF localPos; QPointF globalPos; Qt::MouseButtons buttons; |