!179 fix clang build error

From: @mdLUbG 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
This commit is contained in:
openeuler-ci-bot 2023-09-15 06:23:10 +00:00 committed by Gitee
commit ef3aff2a8b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -u -r ukui-control-center-3.1.2/shell/mainwindow.cpp ukui-control-center-3.1.2/shell/mainwindow.cpp
--- ukui-control-center-3.1.2/shell/mainwindow.cpp 2023-04-03 13:52:30.000000000 +0800
+++ ukui-control-center-3.1.2/shell/mainwindow.cpp 2023-06-17 23:00:33.000000000 +0800
@@ -724,7 +724,7 @@
"QPushButton:pressed{background-color:%2;border-radius: 6px;}").arg(hoverColor).arg(clickColor));
}
- connect(qtSettings, &QGSettings::changed, this, [=,&hoverColor](const QString &key) {
+ connect(qtSettings, &QGSettings::changed, this, [=](const QString &key) {
if (key == "styleName") {
iconBtn->reLoadIcon();
hoverColor = this->pluginBtnHoverColor(qtSettings->get("style-name").toString(), true);

View File

@ -1,6 +1,6 @@
Name: ukui-control-center
Version: 3.1.2
Release: 23
Release: 24
Summary: utilities to configure the UKUI desktop
License: GPL-2+
URL: http://www.ukui.org
@ -22,6 +22,7 @@ Patch17: ukui-control-center-3.1.2-fix-password-changes-for-this-user-and
Patch18: fix-ukui-control-center-3.1.2-activation-button-display-error.patch
Patch19: disable-Time-to-sleep-of-kylin.patch
Patch20: fix-build-error-of-libkscreen-qt5-5.27.6.patch
Patch21: fix-build-error-of-clang.patch
BuildRequires: qt5-qtsvg-devel
BuildRequires: gsettings-qt-devel
BuildRequires: glib2-devel
@ -140,6 +141,12 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Sep 08 2023 yoo <sunyuechi@iscas.ac.cn> - 3.1.2-24
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix clang build error
* Fri Aug 18 2023 douyan <douyan@kylinos.cn> - 3.1.2-23
- Type:bugfix
- ID:NA