From 1c6ac416f4ca6146fecb16033a97dfb162766b25 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Tue, 14 Nov 2023 07:27:17 +0000 Subject: [PATCH] sync: from linuxdeepin/qt5integration Synchronize source files from linuxdeepin/qt5integration. Source-pull-request: https://github.com/linuxdeepin/qt5integration/pull/204 --- styleplugins/chameleon/chameleonstyle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/styleplugins/chameleon/chameleonstyle.cpp b/styleplugins/chameleon/chameleonstyle.cpp index cac0cda..bf3f50b 100644 --- a/styleplugins/chameleon/chameleonstyle.cpp +++ b/styleplugins/chameleon/chameleonstyle.cpp @@ -269,7 +269,7 @@ void ChameleonStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOpti p->setPen(Qt::NoPen); p->setBrush(getColor(opt, QPalette::Highlight)); p->setRenderHint(QPainter::Antialiasing); - p->drawRoundedRect(select_rect, frame_radius, frame_radius); + p->drawRoundedRect(select_rect.adjusted(1, 1, -1, -1), frame_radius, frame_radius); return; } else { if (vopt->backgroundBrush.style() != Qt::NoBrush) { @@ -277,7 +277,7 @@ void ChameleonStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOpti p->setPen(Qt::NoPen); p->setBrush(vopt->backgroundBrush); p->setRenderHint(QPainter::Antialiasing); - p->drawRoundedRect(opt->rect, frame_radius, frame_radius); + p->drawRoundedRect(opt->rect.adjusted(1, 1, -1, -1), frame_radius, frame_radius); p->restore(); return; }