!131 add patch10: 0010-Fix-the-problem-of-scrambled-shortcut-keys.patch

From: @peijiankang 
Reviewed-by: @hua_yadong 
Signed-off-by: @hua_yadong
This commit is contained in:
openeuler-ci-bot 2023-01-11 09:20:27 +00:00 committed by Gitee
commit 29edd18a63
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 33 additions and 3 deletions

View File

@ -0,0 +1,27 @@
From 1c127130f57ea4085b26b42771716196df20e96b Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Mon, 9 Jan 2023 09:39:04 +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 44efa56..a5084a9 100644
--- a/plugins/devices/shortcut/shortcut.cpp
+++ b/plugins/devices/shortcut/shortcut.cpp
@@ -100,6 +100,10 @@ int Shortcut::pluginTypes()
QWidget *Shortcut::pluginUi()
{
+ //修复快捷键中文乱码问题
+ 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.1.2
Release: 7
Release: 8
Summary: utilities to configure the UKUI desktop
License: GPL-2+
URL: http://www.ukui.org
@ -12,7 +12,7 @@ Patch03: 0003-fix-power-missing-issue.patch
Patch05: 0005-Fix-the-problem-of-displaying-none-in-the-interface-version-information.patch
Patch07: 0007-modify-icon-theme-not-display.patch
Patch08: ukui-control-center-3.0.4-fix-invalid-automatic-login.patch
Patch10: 0010-Fix-the-problem-of-scrambled-shortcut-keys.patch
BuildRequires: qt5-qtsvg-devel
BuildRequires: gsettings-qt-devel
@ -83,7 +83,7 @@ The UKUI control center contains configuration applets for the UKUI des allowing
%build
qmake-qt5
make -j2
make -j4
%install
rm -rf $RPM_BUILD_ROOT
@ -131,6 +131,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Jan 9 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.2-8
- add patch10: 0010-Fix-the-problem-of-scrambled-shortcut-keys.patch
* Fri Dec 30 2022 huayadong <huayadong@kylinos.cn> - 3.1.2-7
- Fix invalid automatic login, fix invalid password free login