Qt Declarative (Quick 2)
Go to file
Robin Burchell 6f84a09dfb QQuickWindow: Process a synthetic hover once per frame
This removes the limitation that hover only changes when the mouse moves, and
(in my opinion) is required to make hover functionality even remotely useful.
QtQuick scenes are a dynamic medium, items can move (or change) frequently, so
only changing this in response to a user action means it will frequently end up
out of date.

A very simple example of this is a ListView of delegates that each have a
background set on hover: when flicking the list, it won't reset the hover to
actually match the item under the mouse.

This is now not a (very) expensive operation to do, as deliverHoverEvent
does nothing if the item tree in question doesn't have hover enabled.

[ChangeLog][QtQuick][MouseArea] Hover state is now updated once per frame.
This means that MouseArea::containsMouse property will now be correct even
if the mouse is not moving, but items move under the cursor.  Likewise
the mouse position properties and positionChanged signal will act as if
the mouse had moved.

Task-number: QTBUG-40475
Task-number: QTBUG-42194
Task-number: QTBUG-33982
Task-number: QTBUG-42578
Task-number: QTBUG-52537
Change-Id: Ic2dcbb45339e11c07f5c6a9c95eb7f64957968eb
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
2016-05-26 17:37:41 +00:00
bin Updated license headers 2016-01-19 14:53:18 +00:00
dist Added changelog for 5.6.1 2016-05-16 04:25:23 +00:00
examples Merge remote-tracking branch 'origin/5.7' into dev 2016-05-24 14:00:39 +02:00
src QQuickWindow: Process a synthetic hover once per frame 2016-05-26 17:37:41 +00:00
tests V4: Get more code inlined in the MemoryManager. 2016-05-25 08:22:40 +00:00
tools qmlplugindump: Allow dumping of WebEngine plugins 2016-05-20 09:12:09 +00:00
.gitattributes
.gitignore Add files generated by tests to gitignore 2014-12-20 20:24:25 +01:00
.gitmodules Update Ecmascript testsuite submodule 2015-03-17 11:38:42 +00:00
.qmake.conf Bump version 2016-02-24 12:50:26 +01:00
.tag
LGPL_EXCEPTION.txt Update copyright headers 2015-02-12 10:28:11 +00:00
LICENSE.FDL Add license files mandated by (L)GPL. 2013-02-15 00:03:10 +01:00
LICENSE.GPL2 Updated license headers 2016-01-19 14:53:18 +00:00
LICENSE.GPL3 Updated license headers 2016-01-19 14:53:18 +00:00
LICENSE.GPL3-EXCEPT Updated license headers 2016-01-20 11:46:25 +00:00
LICENSE.GPLv3 Add the GPLv3 license text 2015-08-13 15:04:27 +02:00
LICENSE.LGPL3 Updated license headers 2016-01-19 14:53:18 +00:00
LICENSE.LGPLv3 Add the GPLv3 license text 2015-08-13 15:04:27 +02:00
LICENSE.LGPLv21 Update copyright headers 2015-02-12 10:28:11 +00:00
qtdeclarative.pro Fix error message when Python could not be found 2016-03-09 16:17:59 +00:00
sync.profile Move QQmlDebugClient into separate static library 2015-10-30 19:05:07 +00:00