!16 add window icon
From: @tanyulong2021 Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
7f64cefa93
24
0001-add-window-icon.patch
Normal file
24
0001-add-window-icon.patch
Normal 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
|
||||||
|
|
||||||
@ -4,7 +4,7 @@
|
|||||||
Name: ukui-biometric-auth
|
Name: ukui-biometric-auth
|
||||||
Summary: ukui-biometric-auth
|
Summary: ukui-biometric-auth
|
||||||
Version: 1.2.1
|
Version: 1.2.1
|
||||||
Release: 4
|
Release: 5
|
||||||
|
|
||||||
License: GPL-3+
|
License: GPL-3+
|
||||||
URL: https://github.com/ukui/ukui-biometric-auth
|
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
|
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
|
Requires: cmake qt5-qtbase-devel pam-devel polkit-qt5-1-devel qt5-qttools-devel pkg-config
|
||||||
|
|
||||||
|
Patch0: 0001-add-window-icon.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ukui-biometric-auth
|
ukui-biometric-auth
|
||||||
|
|
||||||
@ -42,7 +44,7 @@ biometric-auth package.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
@ -77,6 +79,9 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Apr 02 2022 tanyulong <tanyulong@kylinos.cn> - 1.2.1-4
|
||||||
- add yaml file
|
- add yaml file
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user