Skip to content

Commit

Permalink
(cleanup) WStarRating: remove unneeded QStyleOption
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jan 20, 2024
1 parent 5401f6b commit ab2d9b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/widget/wstarrating.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ void WStarRating::setup(const QDomNode& node, const SkinContext& context) {
}

QSize WStarRating::sizeHint() const {
QStyleOption option;
option.initFrom(this);

// Center rating horizontally
// Center rating horizontally and vertically
m_contentRect.setRect(
(size().width() - m_visualStarRating.sizeHint().width()) / 2,
(size().height() - m_visualStarRating.sizeHint().height()) / 2,
Expand Down

0 comments on commit ab2d9b6

Please sign in to comment.