diff options
author | Grigorii Zimin <gzimin@luxoft.com> | 2019-12-12 18:37:33 +0300 |
---|---|---|
committer | Grigorii Zimin <gzimin@luxoft.com> | 2019-12-12 17:01:53 +0000 |
commit | 3b238e219858b46834449abcc445a89806bc65df (patch) | |
tree | 4cf7687c208b43522afa4d093f0a92e9e2414461 /sysui | |
parent | 6d5270dfe9f7c888fda4bd3c337f0b3585192e52 (diff) |
[sysui, cursor] add angleOffset for cursor
-- WARNING: config.qml is created for each application in case of MP mode
hence any changes are made inside config dynamically affect only its
own process
Change-Id: I4e86001543d4a4e0348ab3eb9edc16e4f71404f4
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
Diffstat (limited to 'sysui')
-rw-r--r-- | sysui/stores/RootStore.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysui/stores/RootStore.qml b/sysui/stores/RootStore.qml index 49ce5b06..4f523641 100644 --- a/sysui/stores/RootStore.qml +++ b/sysui/stores/RootStore.qml @@ -57,7 +57,10 @@ Store { property alias clusterAvailable: clusterStore.clusterAvailable readonly property bool enableCursorManagement: ApplicationManager.systemProperties.enableCursorManagement - onEnableCursorManagementChanged: { Config.enableCursorManagement = root.enableCursorManagement; } + onEnableCursorManagementChanged: { + Config.cursorAngleOffset =Qt.binding(function(){return centerConsole.isLandscape ? 90 : 0}); + Config.enableCursorManagement = root.enableCursorManagement; + } readonly property bool devMode: ApplicationManager.systemProperties.devMode |