Skip to content

Commit

Permalink
fix(dstyle): button border corner offset
Browse files Browse the repository at this point in the history
Change-Id: I5b5f7dec4ea3a805500c082d0097cdb685096ac6
  • Loading branch information
justforlxz committed Jan 29, 2018
1 parent c4f1ad1 commit 2c74e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dstyleplugin/pushbuttonhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ bool Style::drawPushButtonFrame( QPainter* painter, const QRect& rect, const QBr
const qreal radius( GeometryUtils::frameRadius() );

QPainterPath path;
path.addRoundedRect(rect, radius, radius);
path.addRoundedRect(QRectF(rect).adjusted(0.5, 0.5, -0.5, -0.5), radius, radius);

// ButtonTuples are QPushButton groups that needs to be taken care of,
// the right corners of the LeftButton are not rounded, and the left
Expand Down

0 comments on commit 2c74e56

Please sign in to comment.