diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-06-19 12:54:43 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-01-18 11:55:02 +0000 |
commit | 831efa14e91cfa358e57a32197578d41c2ae1b24 (patch) | |
tree | 2cac3e029867d5c53195a5c18c907a60eb56a543 /tests/auto/quick | |
parent | 948c56ca051d9a2d0f806b8bce3a3170751f5750 (diff) |
Update hovered on disabled QQuickItems
Changes handling of hovered so that the property is still updated on
disabled items, so that other items can bind to it. This is in
particular useful for tooltips.
[ChangeLog][Behavior Changes] QQuickItem::hovered will now update even
when the item is disabled.
Fixes: QTBUG-30801
Pick-to: 6.0
Change-Id: Id17298f657d7631b0e5019138ba33a7d5f863475
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick')
-rw-r--r-- | tests/auto/quick/qquickitem/tst_qquickitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickitem/tst_qquickitem.cpp b/tests/auto/quick/qquickitem/tst_qquickitem.cpp index 0c92d0454e..61780fc405 100644 --- a/tests/auto/quick/qquickitem/tst_qquickitem.cpp +++ b/tests/auto/quick/qquickitem/tst_qquickitem.cpp @@ -1622,7 +1622,7 @@ void tst_qquickitem::hoverEvent() QTest::mouseMove(window, inside); QTest::mouseMove(window, outside); - const bool shouldReceiveHoverEvents = visible && enabled && acceptHoverEvents; + const bool shouldReceiveHoverEvents = visible && acceptHoverEvents; if (shouldReceiveHoverEvents) { QCOMPARE(item->hoverEnterCount, 1); QCOMPARE(item->hoverMoveCount, 2); |