diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-09-15 07:38:53 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-09-15 11:16:31 +0000 |
commit | c886facd990acf207f3164662601222babc8dde2 (patch) | |
tree | b29476b157bc0031d5148e690c1cd6d6476fccb2 /tests | |
parent | e83cbaddbfec2aaae157ef0223f1e8d38a3d37bc (diff) |
QQuickControl: clear the hovered state when hidden
Task-number: QTBUG-56007
Change-Id: I6433e0ebc9570b1e9e6e149ef7f631ea6786f672
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_control.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_control.qml b/tests/auto/controls/data/tst_control.qml index 601b7f8f..4b7a60dc 100644 --- a/tests/auto/controls/data/tst_control.qml +++ b/tests/auto/controls/data/tst_control.qml @@ -880,6 +880,12 @@ TestCase { mouseMove(control, -10, -10) compare(control.hovered, false) + mouseMove(control, control.width / 2, control.height / 2) + compare(control.hovered, true) + + control.visible = false + compare(control.hovered, false) + control.destroy() } |