!45 fix(KiranColorBlock): Fix the issue of invalid set radius
From: @SkyzcYou Reviewed-by: @liubuguiii Signed-off-by: @liubuguiii
This commit is contained in:
commit
aa404edd0f
@ -0,0 +1,29 @@
|
||||
From a858ded5a69d359c9d0581b44920c9b165085a77 Mon Sep 17 00:00:00 2001
|
||||
From: youzhengcai <youzhengcai@kylinsec.com.cn>
|
||||
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
|
||||
|
||||
@ -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 <youzhengcai@kylinsec.com.cn> - 2.4.2-5
|
||||
- KYOS-F: Fix the issue of invalid set radius for KiranColorBlock.
|
||||
|
||||
* Sun Feb 18 2024 liuxinhao <liuxinhao@kylinsec.com.cn> - 2.4.2-4
|
||||
- KYOS-B: Fix the issue of blank icons occupying the title bar position(#29450)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user