D9817: Adapt to QQuickWindow hover event synthesis & optimize delegate
Eike Hein
noreply at phabricator.kde.org
Thu Jan 11 13:13:31 UTC 2018
hein created this revision.
hein added a reviewer: Plasma.
Restricted Application added a project: Plasma.
hein requested review of this revision.
REVISION 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.
REPOSITORY
R119 Plasma Desktop
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D9817
AFFECTED FILES
applets/kicker/package/contents/ui/DashboardRepresentation.qml
applets/kicker/package/contents/ui/ItemGridDelegate.qml
applets/kicker/package/contents/ui/ItemGridView.qml
To: hein, #plasma
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180111/1aa2e78a/attachment.html>
More information about the Plasma-devel
mailing list