aboutsummaryrefslogtreecommitdiffstats
path: root/imports_shared
diff options
context:
space:
mode:
authorEgor Nemtsev <enemtsev@luxoft.com>2019-12-04 16:31:46 +0300
committerEgor Nemtsev <enemtsev@luxoft.com>2019-12-05 11:26:34 +0000
commita0ec9974642cbe704ab0e57a26be54da51811e22 (patch)
treeb7b754fbc7c003528ca3b0f8a22cdb187d41a7f8 /imports_shared
parentbac326c7ac045514f8ae9f1db571721f4a05cfce (diff)
[sysui] add default Binding restoreMode for Qt6
- to remove Qt6 warnings in console add default value to Binding qml components Task-number: AUTOSUITE-1367 Change-Id: I15a67771b4b3a957b7f5e876aebdd9a11e9f6c5d Reviewed-by: Grigorii Zimin <gzimin@luxoft.com>
Diffstat (limited to 'imports_shared')
-rw-r--r--imports_shared/shared/utils/Cursor.qml21
1 files changed, 17 insertions, 4 deletions
diff --git a/imports_shared/shared/utils/Cursor.qml b/imports_shared/shared/utils/Cursor.qml
index 4e5bac54..5d7f6bfe 100644
--- a/imports_shared/shared/utils/Cursor.qml
+++ b/imports_shared/shared/utils/Cursor.qml
@@ -49,6 +49,7 @@
****************************************************************************/
import QtQuick 2.13
+import QtQml 2.14
import shared.utils 1.0
Loader {
@@ -63,10 +64,22 @@ Loader {
signal activated()
signal pressAndHold()
- Binding { target: item; property:"parent"; value: root.parent; when: item }
- Binding { target: item; property:"trapsCursor"; value: root.trapsCursor; when: item }
- Binding { target: item; property:"acceptsCursor"; value: root.acceptsCursor; when: item }
- Binding { target: root; property:"hasCursor"; value: item.hasCursor; when: item}
+ Binding {
+ restoreMode: Binding.RestoreBinding;
+ target: item; property:"parent"; value: root.parent; when: item;
+ }
+ Binding {
+ restoreMode: Binding.RestoreBinding;
+ target: item; property:"trapsCursor"; value: root.trapsCursor; when: item;
+ }
+ Binding {
+ restoreMode: Binding.RestoreBinding;
+ target: item; property:"acceptsCursor"; value: root.acceptsCursor; when: item;
+ }
+ Binding {
+ restoreMode: Binding.RestoreBinding;
+ target: root; property:"hasCursor"; value: item.hasCursor; when: item;
+ }
Connections {
target: item