diff --git a/0003-fix-KiranColorBlock-Fix-the-issue-of-invalid-set-rad.patch b/0003-fix-KiranColorBlock-Fix-the-issue-of-invalid-set-rad.patch new file mode 100644 index 0000000000000000000000000000000000000000..f062c8f31b52460694118e22f9bcfd0d1a8cc770 --- /dev/null +++ b/0003-fix-KiranColorBlock-Fix-the-issue-of-invalid-set-rad.patch @@ -0,0 +1,29 @@ +From a858ded5a69d359c9d0581b44920c9b165085a77 Mon Sep 17 00:00:00 2001 +From: youzhengcai +Date: Thu, 11 Apr 2024 11:39:01 +0800 +Subject: [PATCH] fix(KiranColorBlock): Fix the issue of invalid set radius +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +- 修复 KiranColorBlock 自定义圆角无效问题 +--- + src/widgets/kiran-color-block/kiran-color-block.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/widgets/kiran-color-block/kiran-color-block.cpp b/src/widgets/kiran-color-block/kiran-color-block.cpp +index af12bd5..007ce37 100644 +--- a/src/widgets/kiran-color-block/kiran-color-block.cpp ++++ b/src/widgets/kiran-color-block/kiran-color-block.cpp +@@ -124,7 +124,7 @@ void KiranColorBlock::paintEvent(QPaintEvent *event) + QRectF frect = opt.rect; + + QPainterPath painterPath; +- painterPath = roundedPath(frect, d_ptr->m_radiusCorner, 6); ++ painterPath = roundedPath(frect, d_ptr->m_radiusCorner, d_ptr->m_radius); + + QPainter painter(this); + painter.setRenderHint(QPainter::Antialiasing); +-- +2.27.0 + diff --git a/kiran-widgets-qt5.spec b/kiran-widgets-qt5.spec index 6d00f4765966371cf8477472e1cae7734a389dbc..d3c70433aecd54c4d84321115b53be6c926241d1 100644 --- a/kiran-widgets-qt5.spec +++ b/kiran-widgets-qt5.spec @@ -1,6 +1,6 @@ Name: kiran-widgets-qt5 Version: 2.4.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Encapsulated QT Widget Summary(zh_CN): 封装的Qt小部件 @@ -10,6 +10,7 @@ Source0: %{name}-%{version}.tar.gz Patch0000: 0000-fix-KiranPasswordEdit-default-password-input-does-no.patch Patch0001: 0001-feat-KiranTitlebarWindow-Customize-title-bar-to-send.patch Patch0002: 0002-fix-KiranTitlebarWindow-Fix-the-issue-of-blank-icons.patch +Patch0003: 0003-fix-KiranColorBlock-Fix-the-issue-of-invalid-set-rad.patch BuildRequires: cmake >= 3.5 BuildRequires: gcc-c++ @@ -80,6 +81,9 @@ make %{?_smp_mflags} rm -rf %{buildroot} %changelog +* Thu Apr 11 2024 youzhengcai - 2.4.2-5 +- KYOS-F: Fix the issue of invalid set radius for KiranColorBlock. + * Sun Feb 18 2024 liuxinhao - 2.4.2-4 - KYOS-B: Fix the issue of blank icons occupying the title bar position(#29450)