From 307308dba6cae908bfefbfa25d15574bf15c0cb0 Mon Sep 17 00:00:00 2001 From: liuxinhao Date: Sun, 25 Jun 2023 19:13:03 +0800 Subject: [PATCH] fix(icon): Update the title bar icon when the window state changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 窗口状态改变时,更新标题栏图标 Closes #I7FTM3 --- ...the-title-bar-icon-when-the-window-s.patch | 31 +++++++++++++++++++ kiran-widgets-qt5.spec | 14 ++++++--- 2 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 0005-fix-icon-Update-the-title-bar-icon-when-the-window-s.patch diff --git a/0005-fix-icon-Update-the-title-bar-icon-when-the-window-s.patch b/0005-fix-icon-Update-the-title-bar-icon-when-the-window-s.patch new file mode 100644 index 0000000..11664ce --- /dev/null +++ b/0005-fix-icon-Update-the-title-bar-icon-when-the-window-s.patch @@ -0,0 +1,31 @@ +From 3eec02dc69346fc452aeb1ee2dc29803848500e7 Mon Sep 17 00:00:00 2001 +From: liuxinhao +Date: Sun, 25 Jun 2023 19:07:19 +0800 +Subject: [PATCH] fix(icon): Update the title bar icon when the window state + changes +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +- 窗口状态改变时,更新标题栏图标 + +Closes #I7FTM3 +--- + .../kiran-titlebar-window/kiran-titlebar-window-private.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/widgets/kiran-titlebar-window/kiran-titlebar-window-private.cpp b/src/widgets/kiran-titlebar-window/kiran-titlebar-window-private.cpp +index 18a2aa3..8252d97 100644 +--- a/src/widgets/kiran-titlebar-window/kiran-titlebar-window-private.cpp ++++ b/src/widgets/kiran-titlebar-window/kiran-titlebar-window-private.cpp +@@ -585,6 +585,7 @@ bool KiranTitlebarWindowPrivate::eventFilter(QObject *obj, QEvent *event) + { + m_frame->setRadius(radius); + } ++ updateTitlebarButtonIcon(); + break; + default: + break; +-- +2.33.0 + diff --git a/kiran-widgets-qt5.spec b/kiran-widgets-qt5.spec index ede3ef0..0ed9282 100644 --- a/kiran-widgets-qt5.spec +++ b/kiran-widgets-qt5.spec @@ -1,16 +1,17 @@ Name: kiran-widgets-qt5 Version: 2.4.0 -Release: 4 +Release: 5 Summary: Encapsulated QT Widget Summary(zh_CN): 封装的Qt小部件 License: MulanPSL-2.0 Source0: %{name}-%{version}.tar.gz -Patch0001: 0001-feat-KiranLabel-KiranPasswdEdit-new-control-KiranLab.patch -Patch0002: 0002-fix-KiranSiderbarWidget-If-the-text-is-too-wide-and-.patch -Patch0003: 0003-fix-KiranTitlebarWindow-Fix-when-zoomed-twice_GTK_FR.patch -Patch0004: 0004-fix-translate-add-some-translation.patch +Patch0001: 0001-feat-KiranLabel-KiranPasswdEdit-new-control-KiranLab.patch +Patch0002: 0002-fix-KiranSiderbarWidget-If-the-text-is-too-wide-and-.patch +Patch0003: 0003-fix-KiranTitlebarWindow-Fix-when-zoomed-twice_GTK_FR.patch +Patch0004: 0004-fix-translate-add-some-translation.patch +Patch0005: 0005-fix-icon-Update-the-title-bar-icon-when-the-window-s.patch BuildRequires: cmake >= 3.5 BuildRequires: gcc-c++ @@ -81,6 +82,9 @@ make %{?_smp_mflags} rm -rf %{buildroot} %changelog +* Sun Jun 25 2023 liuxinhao - 2.4.0-5 +- KYOS-B: Update the title bar icon when the window state changes(#I7FTM3) + * Mon Apr 10 2023 wangyucheng - 2.4.0-4 - KYOS-T: add some translation