!16 add window icon

From: @tanyulong2021 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
This commit is contained in:
openeuler-ci-bot 2022-08-01 03:36:59 +00:00 committed by Gitee
commit 7f64cefa93
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,24 @@
From e2065a497b13f86ef814ee4181428e779ec0d1bc Mon Sep 17 00:00:00 2001
From: tanyulong2021 <tanyulong@kylinos.cn>
Date: Mon, 1 Aug 2022 10:44:35 +0800
Subject: [PATCH] add window icon
---
polkit-agent/src/mainwindow.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/polkit-agent/src/mainwindow.cpp b/polkit-agent/src/mainwindow.cpp
index 2913873..7a74bb1 100755
--- a/polkit-agent/src/mainwindow.cpp
+++ b/polkit-agent/src/mainwindow.cpp
@@ -192,6 +192,7 @@ void MainWindow::setIcon(const QString &iconName)
painter.drawPixmap(rect, actionIcon);
painter.end();
+ setWindowIcon(icon);
ui->lblIcon->setPixmap(icon);
}
--
2.33.0

View File

@ -4,7 +4,7 @@
Name: ukui-biometric-auth
Summary: ukui-biometric-auth
Version: 1.2.1
Release: 4
Release: 5
License: GPL-3+
URL: https://github.com/ukui/ukui-biometric-auth
@ -13,6 +13,8 @@ Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake qt5-qtbase-devel pam-devel polkit-qt5-1-devel qt5-qttools-devel pkg-config
Requires: cmake qt5-qtbase-devel pam-devel polkit-qt5-1-devel qt5-qttools-devel pkg-config
Patch0: 0001-add-window-icon.patch
%description
ukui-biometric-auth
@ -42,7 +44,7 @@ biometric-auth package.
%prep
%setup -q
%patch0 -p1
%build
mkdir build
@ -77,6 +79,9 @@ make DESTDIR=$RPM_BUILD_ROOT install
%changelog
* Mon Aug 01 2022 tanyulong <tanyulong@kylinos.cn> - 1.2.1-5
- add window icon
* Sat Apr 02 2022 tanyulong <tanyulong@kylinos.cn> - 1.2.1-4
- add yaml file