Skip to content

Commit

Permalink
[Qt] Fix tab text cutting off at some resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzile committed Aug 13, 2023
1 parent 47a5f20 commit 295b6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xenia/ui/qt/widgets/tab_selector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void XTabSelector::Build() {
font_.setPixelSize(font_size_);
QFontMetrics metrics(font_);
QRect rect = metrics.boundingRect(tab_name);
int width = rect.width();
int width = metrics.horizontalAdvance(tab_name);
int height = rect.height();

// Translate rect to proper widget position
Expand Down

0 comments on commit 295b6c3

Please sign in to comment.