30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
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
|
|
|