Skip to content

Commit

Permalink
correcting size for the custom segmented button group
Browse files Browse the repository at this point in the history
Signed-off-by: KhalilSelyan <[email protected]>
  • Loading branch information
KhalilSelyan committed May 19, 2024
1 parent 18087b7 commit c43119a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ void CustomSegmentedButton::paintEvent(QPaintEvent *)

// Draw background
QPainterPath path;
QRectF rect = this->rect().adjusted(1, 0, -1, 0);
path.addRoundedRect(rect, height() / 2, height() / 2);
path.addRoundedRect(rect(), height() / 2, height() / 2);

painter.setPen(Qt::NoPen);
painter.setBrush(QColor("#0F1417"));
Expand Down

0 comments on commit c43119a

Please sign in to comment.