aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlobjectcreator.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@theqtcompany.com>2015-10-14 20:58:21 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-05-26 17:37:41 +0000
commit6f84a09dfbd15aac023580cf06e7b8c24f3b524c (patch)
treeeb34fd782c151b6d9c1254428efd96353c44b255 /src/qml/qml/qqmlobjectcreator.cpp
parent0ac9389dbd7facaa424dc175e5f5dac514630eef (diff)
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>
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator.cpp')
0 files changed, 0 insertions, 0 deletions