diff options
author | Alexandra Betouni <ABetouni@luxoft.com> | 2019-10-07 15:54:04 +0300 |
---|---|---|
committer | Alexandra Betouni <ABetouni@luxoft.com> | 2019-10-09 07:25:13 +0000 |
commit | a7564279d54932337098f625c84f0dbea27d96fc (patch) | |
tree | 1e2fbffb4c36c862d25e44b0db7f70faba562fba /imports_shared | |
parent | bc0a9e4945e2e1a46803fa5722d1ed3c3d750133 (diff) |
[cursormanagement] CursorManagement bug fixes
Fixed pressed not defined issue
Added improvement for popup not trapping cursor issue
Task-number: AUTOSUITE-1256
Change-Id: I7d22006cae8c4a75c2b8427a95b53b357b29e9d9
Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
Diffstat (limited to 'imports_shared')
-rw-r--r-- | imports_shared/shared/utils/CursorManagement.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/imports_shared/shared/utils/CursorManagement.qml b/imports_shared/shared/utils/CursorManagement.qml index c2250d04..a1920787 100644 --- a/imports_shared/shared/utils/CursorManagement.qml +++ b/imports_shared/shared/utils/CursorManagement.qml @@ -59,6 +59,10 @@ Item { focus: parent.activeFocus property bool trapsCursor: false + onTrapsCursorChanged: { + parent.CursorNavigation.trapsCursor = root.trapsCursor; + } + property bool acceptsCursor: true property bool hasCursor: parent.CursorNavigation.hasCursor property bool pressed: false @@ -73,7 +77,7 @@ Item { } Connections { - target: parent + target: (parent.pressed !== undefined) ? parent : null onPressed: { pressAndHoldSim.start(); } |