diff options
author | Aleksei Korkov <akorkov@luxoft.com> | 2020-02-11 18:34:46 +0300 |
---|---|---|
committer | Egor Nemtsev <enemtsev@luxoft.com> | 2020-02-12 07:45:15 +0000 |
commit | 739d890d82ee5bc8578d3d31ba9683ee0e455192 (patch) | |
tree | b459213438b7f740424220dcbc0b32d267e83f5b /imports_shared | |
parent | 5b0353b925c1050cd1d305e0111880aaeaa7bccd (diff) |
[sysui][settings] Fix switching Rtl-mode
- Rtl-mode was being applied incorrectly. Previously, if we were changing locale, for example, to Arabic, it had no effect on Settings-app itself. It happened because QtRO was not synchronized. Also when we changed language in Remote-app it didn't change its own checkbox for rtl-option.
Fixes: AUTOSUITE-1326
Change-Id: Iab98a506f0782e585a6cf01a1c5dcbd76b85c7fb
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
Diffstat (limited to 'imports_shared')
-rw-r--r-- | imports_shared/application/windows/NeptuneWindow.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/imports_shared/application/windows/NeptuneWindow.qml b/imports_shared/application/windows/NeptuneWindow.qml index 9ee9a9bb..ae3f39e0 100644 --- a/imports_shared/application/windows/NeptuneWindow.qml +++ b/imports_shared/application/windows/NeptuneWindow.qml @@ -70,7 +70,7 @@ import shared.Sizes 1.0 ApplicationManagerWindow { id: root - LayoutMirroring.enabled: isRightToLeft || Config.rtlMode + LayoutMirroring.enabled: Config.rtlMode LayoutMirroring.childrenInherit: true color: "transparent" @@ -80,7 +80,7 @@ ApplicationManagerWindow { This property holds whether the current locale uses the right-to-left text direction (RTL) */ - readonly property bool isRightToLeft: Qt.locale().textDirection === Qt.RightToLeft + readonly property bool isRightToLeft: Config.rtlMode onWindowPropertyChanged: { switch (name) { |