Adapt to QQuickWindow hover event synthesis & optimize delegate

Authored by hein on Jan 11 2018, 1:10 PM.

Description

Adapt to QQuickWindow hover event synthesis & optimize delegate

Summary:
As of Qt 5.9, QQuickWindow synthesizes a hover event once per frame.
This interferes with keyboard navigation when having the mouse
pointer above any item, because after navigating away with the arrow
keys, the next synthesized hover event will cause the item below the
pointer to become the current item again. This patch addresses this
by rejecting onPositionChanged with identical coordinates from the
last event.

It also optimizes the delegate by turning its root item from
MouseArea to Item and turning the per-delegate context menu instance
into a per-view one.

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D9817

Details

Committed
heinJan 14 2018, 7:35 AM
Differential Revision
D9817: Adapt to QQuickWindow hover event synthesis & optimize delegate
Parents
R119:76b112d8cd14: [Task Manager] Reverse DBus setup order
Branches
Unknown
Tags
Unknown