Adapt to QQuickWindow hover event synthesis & optimize delegate
ClosedPublic

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

Details

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.

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
hein created this revision.Jan 11 2018, 1:13 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 11 2018, 1:13 PM
hein requested review of this revision.Jan 11 2018, 1:13 PM
mart accepted this revision.Jan 12 2018, 3:28 PM
This revision is now accepted and ready to land.Jan 12 2018, 3:28 PM
This revision was automatically updated to reflect the committed changes.