Skip to content

Commit

Permalink
sync: from linuxdeepin/qt5integration
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/qt5integration.

Source-pull-request: linuxdeepin/qt5integration#204
  • Loading branch information
deepin-ci-robot committed Nov 14, 2023
1 parent c2ad81e commit 1c6ac41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions styleplugins/chameleon/chameleonstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,15 @@ 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) {
p->save();
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;
}
Expand Down

0 comments on commit 1c6ac41

Please sign in to comment.