!111 [sync] PR-110: add 0010-Fix-the-problem-of-scrambled-shortcut-keys.patch

From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
This commit is contained in:
openeuler-ci-bot 2022-08-16 05:36:49 +00:00 committed by Gitee
commit dcf27a6d7d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From d4982a90afbc954404f1bb821e636f57c599e3ef Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Mon, 15 Aug 2022 14:48:53 +0800
Subject: [PATCH] Fix the problem of scrambled shortcut keys
---
plugins/devices/shortcut/shortcut.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/plugins/devices/shortcut/shortcut.cpp b/plugins/devices/shortcut/shortcut.cpp
index 15c37ca..2f52086 100644
--- a/plugins/devices/shortcut/shortcut.cpp
+++ b/plugins/devices/shortcut/shortcut.cpp
@@ -96,6 +96,10 @@ int Shortcut::get_plugin_type()
QWidget *Shortcut::get_plugin_ui()
{
+ //修复快捷键中文乱码问题
+ const QString locale = QLocale::system().name();
+ (void) setlocale(LC_ALL, QString(locale + ".UTF-8").toStdString().c_str());
+
if (mFirstLoad) {
mFirstLoad = false;
--
2.33.0

View File

@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: ukui-control-center
Version: 3.0.4
Release: 14
Release: 15
Summary: utilities to configure the UKUI desktop
License: GPL-2+
URL: http://www.ukui.org
@ -15,6 +15,7 @@ Patch06: 0006-fix-the-problem-that-the-new-user-in-the-control-panel-is-s
Patch07: 0007-modify-icon-theme-not-display.patch
Patch08: 0008-Fix-preferred-language-default-errors.patch
Patch09: 0009-Fix-the-resolution-donotsave-button-fails.patch
Patch10: 0010-Fix-the-problem-of-scrambled-shortcut-keys.patch
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qtbase-devel
@ -121,6 +122,7 @@ Suggests: ukui-settings-daemon
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%build
qmake-qt5
@ -169,6 +171,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Aug 15 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.4-15
- Fix the problem of scrambled shortcut keys
* Thu Jul 21 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.4-14
- rebuild